aboutsummaryrefslogtreecommitdiffstats
path: root/cputemp2maxfreq.h
diff options
context:
space:
mode:
authorPA4WDH2023-05-24 08:33:53 +0200
committerPA4WDH2023-05-24 08:33:53 +0200
commitfa20f603834ef9febe396c058c9d775038f4a28b (patch)
treedbe5ad3e978f562c4709b66653a5efd9bbdcc2f3 /cputemp2maxfreq.h
parentAdd keep feature for governor (diff)
downloadcputemp2maxfreq-fa20f603834ef9febe396c058c9d775038f4a28b.tar.gz
cputemp2maxfreq-fa20f603834ef9febe396c058c9d775038f4a28b.tar.bz2
cputemp2maxfreq-fa20f603834ef9febe396c058c9d775038f4a28b.zip
Add logging functions
Diffstat (limited to 'cputemp2maxfreq.h')
-rw-r--r--cputemp2maxfreq.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cputemp2maxfreq.h b/cputemp2maxfreq.h
index 39886fd..cda9d4b 100644
--- a/cputemp2maxfreq.h
+++ b/cputemp2maxfreq.h
@@ -32,6 +32,8 @@ struct s_config {
long int freq_step; // Step size to increase/decrease CPU frequency
long int fallback_freq; // CPU frquency to set if we fail to protect hardware
unsigned int interval; // Time interval to check CPU temperature
+ char logger_name[10]; // Name of the logging function
+ void (*logger)(char *,...); // Pointer to the logging function
};
#endif