aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cputemp2maxfreq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cputemp2maxfreq.c b/cputemp2maxfreq.c
index 212fb39..5137d16 100644
--- a/cputemp2maxfreq.c
+++ b/cputemp2maxfreq.c
@@ -313,7 +313,7 @@ int main(int argc,char **argv)
config.logger("Failed to set scaling_max_freq, exiting");
failsafe(1);
}
- cpudata.scale_max=sysfs_read_long_int("/sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq");
+ cpudata.scale_max=cpufreq_get_long_int("scaling_max_freq");
if ((cpudata.scale_max<VALID_FREQ_MIN) || (cpudata.scale_max>VALID_FREQ_MAX))
{
config.logger("Invalid scale_max_freq reported, exiting");
@@ -335,7 +335,7 @@ int main(int argc,char **argv)
config.logger("Failed to set scaling_max_freq, exiting");
failsafe(1);
}
- cpudata.scale_max=sysfs_read_long_int("/sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq");
+ cpudata.scale_max=cpufreq_get_long_int("scaling_max_freq");
if ((cpudata.scale_max<VALID_FREQ_MIN) || (cpudata.scale_max>VALID_FREQ_MAX))
{
config.logger("Invalid scale_max_freq reported, exiting");