summaryrefslogtreecommitdiffstats
path: root/power-8916.c
diff options
context:
space:
mode:
Diffstat (limited to 'power-8916.c')
-rw-r--r--power-8916.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/power-8916.c b/power-8916.c
index 1ad6ab9..af32609 100644
--- a/power-8916.c
+++ b/power-8916.c
@@ -96,16 +96,9 @@ int set_interactive_override(int on) {
char governor[80];
char tmp_str[NODE_MAX];
- ALOGI("Got set_interactive hint");
- if (get_scaling_governor_check_cores(governor, sizeof(governor), CPU0) == -1) {
- if (get_scaling_governor_check_cores(governor, sizeof(governor), CPU1) == -1) {
- if (get_scaling_governor_check_cores(governor, sizeof(governor), CPU2) == -1) {
- if (get_scaling_governor_check_cores(governor, sizeof(governor), CPU3) == -1) {
- ALOGE("Can't obtain scaling governor.");
- return HINT_HANDLED;
- }
- }
- }
+ if (get_scaling_governor(governor, sizeof(governor)) == -1) {
+ ALOGE("Can't obtain scaling governor.");
+ return HINT_HANDLED;
}
if (!on) {