diff options
Diffstat (limited to 'power')
-rw-r--r-- | power/power_tuna.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/power/power_tuna.c b/power/power_tuna.c index c5852d7..76f411e 100644 --- a/power/power_tuna.c +++ b/power/power_tuna.c @@ -145,13 +145,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, |