From 66aca8aa35bc0b07c754d9ad95c808e4d91f58f1 Mon Sep 17 00:00:00 2001 From: PA4WDH Date: Sat, 24 Aug 2024 16:07:11 +0200 Subject: Add multi-CPU support --- cputemp2maxfreq.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cputemp2maxfreq.h') 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 -- cgit v1.2.3