From bd331dbb839d7ee8b2d8abeb89d4fd650db58a9d Mon Sep 17 00:00:00 2001 From: PA4WDH Date: Sat, 27 May 2023 10:47:05 +0200 Subject: Use CPU Transition Latency as checkdelay when setting new scaling_max_freq --- cpufreq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpufreq.c') diff --git a/cpufreq.c b/cpufreq.c index 1eab630..6497eff 100644 --- a/cpufreq.c +++ b/cpufreq.c @@ -22,7 +22,7 @@ int cpufreq_is_cpu(char *name) } // Set a cpufreq parameter to a value -int cpufreq_set_str(char *parameter,char *value,int checkdelay) +int cpufreq_set_str(char *parameter,char *value,long int checkdelay) { int fd; char sysfs_file[128]; @@ -94,7 +94,7 @@ int cpufreq_set_str(char *parameter,char *value,int checkdelay) // This is just a wrapper around cpufreq_set_str with long int to string // convertion -int cpufreq_set_long_int(char *parameter,long int value,int checkdelay) +int cpufreq_set_long_int(char *parameter,long int value,long int checkdelay) { char buf[255]; -- cgit v1.2.3