aboutsummaryrefslogtreecommitdiffstats
path: root/cputemp2maxfreq.h
diff options
context:
space:
mode:
authorPA4WDH2024-08-24 16:07:11 +0200
committerPA4WDH2024-08-24 16:07:11 +0200
commit66aca8aa35bc0b07c754d9ad95c808e4d91f58f1 (patch)
tree8f051b5cc7660ff596c7ef80c69a9a485016b26c /cputemp2maxfreq.h
parentAdd -k option to keep state on successul exit (diff)
downloadcputemp2maxfreq-66aca8aa35bc0b07c754d9ad95c808e4d91f58f1.tar.gz
cputemp2maxfreq-66aca8aa35bc0b07c754d9ad95c808e4d91f58f1.tar.bz2
cputemp2maxfreq-66aca8aa35bc0b07c754d9ad95c808e4d91f58f1.zip
Add multi-CPU support
Diffstat (limited to 'cputemp2maxfreq.h')
-rw-r--r--cputemp2maxfreq.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cputemp2maxfreq.h b/cputemp2maxfreq.h
index a901e6d..aefcefc 100644
--- a/cputemp2maxfreq.h
+++ b/cputemp2maxfreq.h
@@ -28,6 +28,8 @@ struct s_cpudata {
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
+ char **cpulist; // CPU list, set by cpulist_find_cpus
+ int cpulist_len; // Length of CPU list, set by cpulist_find_cpus
};
struct s_config {
@@ -47,6 +49,7 @@ struct s_config {
char use_unixtime; // Use unixtime timestamps in logs and CSV
long int transition_latency; // User configurable transition latency, <0 for autodetect
int keepstate; // Keep last state on exit (0=set lowest freq)
+ int cpu; // CPU to monior when >=0, all on <0
};
#endif