summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--power/power_tuna.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/power/power_tuna.c b/power/power_tuna.c
index 80330a1..0789e8f 100644
--- a/power/power_tuna.c
+++ b/power/power_tuna.c
@@ -143,13 +143,9 @@ static void tuna_power_set_interactive(struct power_module *module, int on)
if (len != -1 && strncmp(buf, screen_off_max_freq,
strlen(screen_off_max_freq)) != 0)
memcpy(scaling_max_freq, buf, sizeof(buf));
-
- sysfs_write("/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq",
- on ? scaling_max_freq : screen_off_max_freq);
- }
- else
- sysfs_write("/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq",
- on ? scaling_max_freq : screen_off_max_freq);
+ sysfs_write(SCALINGMAXFREQ_PATH, screen_off_max_freq);
+ } else
+ sysfs_write(SCALINGMAXFREQ_PATH, scaling_max_freq);
}
static void tuna_power_hint(struct power_module *module, power_hint_t hint,