powerHAL: Removes the system call for reducing the refresh rate when the
device is in low power mode.
Logic shifted to the generic frameworks code since it isn't device
specific.
Change-Id: I03670fa0710f4a04b38a12e9fee41370f8f2e0a6
diff --git a/power/power.c b/power/power.c
index 24879b7..7af67bf 100644
--- a/power/power.c
+++ b/power/power.c
@@ -238,8 +238,6 @@
freq_set[cpu] = true;
}
}
- // reduces the refresh rate
- system("service call SurfaceFlinger 1016 i32 1");
} else {
low_power_mode = false;
for (cpu = 0; cpu < TOTAL_CPUS; cpu++) {
@@ -248,8 +246,6 @@
freq_set[cpu] = false;
}
}
- // restores the refresh rate
- system("service call SurfaceFlinger 1016 i32 0");
}
pthread_mutex_unlock(&low_power_mode_lock);
break;