aboutsummaryrefslogtreecommitdiffstats
path: root/cpufreq.c
diff options
context:
space:
mode:
authorPA4WDH2023-05-27 10:47:05 +0200
committerPA4WDH2023-05-27 10:47:05 +0200
commitbd331dbb839d7ee8b2d8abeb89d4fd650db58a9d (patch)
tree617c55fff6034445caf56ff4c65779bda5b3d7f5 /cpufreq.c
parentAdded restart delay in Gentoo initscript (diff)
downloadcputemp2maxfreq-bd331dbb839d7ee8b2d8abeb89d4fd650db58a9d.tar.gz
cputemp2maxfreq-bd331dbb839d7ee8b2d8abeb89d4fd650db58a9d.tar.bz2
cputemp2maxfreq-bd331dbb839d7ee8b2d8abeb89d4fd650db58a9d.zip
Use CPU Transition Latency as checkdelay when setting new scaling_max_freq
Diffstat (limited to 'cpufreq.c')
-rw-r--r--cpufreq.c4
1 files changed, 2 insertions, 2 deletions
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];