summaryrefslogtreecommitdiffstats
path: root/power-8937.c
diff options
context:
space:
mode:
Diffstat (limited to 'power-8937.c')
-rw-r--r--power-8937.c24
1 files changed, 6 insertions, 18 deletions
diff --git a/power-8937.c b/power-8937.c
index e2610d9..2cbdc71 100644
--- a/power-8937.c
+++ b/power-8937.c
@@ -97,15 +97,9 @@ int set_interactive_override(int on) {
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) {
@@ -165,15 +159,9 @@ static void process_video_encode_hint(void* metadata) {
ALOGI("Got process_video_encode_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;
- }
- }
- }
+ if (get_scaling_governor(governor, sizeof(governor)) == -1) {
+ ALOGE("Can't obtain scaling governor.");
+ return;
}
/* Initialize encode metadata struct fields. */