From 1b34033b156401a2ed92bdd8cc0dd44a5579e4ca Mon Sep 17 00:00:00 2001 From: PA4WDH Date: Thu, 12 Sep 2024 14:13:38 +0200 Subject: Move more calls from sysfs_read_long_int to cpufreq_get_long_int --- cputemp2maxfreq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cputemp2maxfreq.c') 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_maxVALID_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_maxVALID_FREQ_MAX)) { config.logger("Invalid scale_max_freq reported, exiting"); -- cgit v1.2.3