aboutsummaryrefslogtreecommitdiffstats
path: root/cputemp2maxfreq.h
diff options
context:
space:
mode:
authorPA4WDH2023-05-27 10:47:05 +0200
committerPA4WDH2023-05-27 10:47:05 +0200
commitbd331dbb839d7ee8b2d8abeb89d4fd650db58a9d (patch)
tree617c55fff6034445caf56ff4c65779bda5b3d7f5 /cputemp2maxfreq.h
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 'cputemp2maxfreq.h')
-rw-r--r--cputemp2maxfreq.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/cputemp2maxfreq.h b/cputemp2maxfreq.h
index 984fabc..31f6da1 100644
--- a/cputemp2maxfreq.h
+++ b/cputemp2maxfreq.h
@@ -17,12 +17,17 @@
#define VALID_INTERVAL_MIN 1
#define VALID_INTERVAL_MAX 30
+// Valid transition delays between 0 and 100000
+#define VALID_TRANS_MIN 0
+#define VALID_TRANS_MAX 100000
+
struct s_cpudata {
- long int min_freq; // CPU's minimum frequency
- long int max_freq; // CPU's maximum frequency
- long int cur_freq; // CPU's current frequency
- long int cur_temp; // CPU's current temperature
- long int scale_max; // Governor's maximum scaling frequency
+ long int min_freq; // CPU's minimum frequency
+ long int max_freq; // CPU's maximum frequency
+ long int cur_freq; // CPU's current frequency
+ long int cur_temp; // CPU's current temperature
+ long int scale_max; // Governor's maximum scaling frequency
+ long int transition_latency; // CPU's transition latency
};
struct s_config {