x86, mcheck, therm_throt: Process package thresholds
PATCH 2/4 x86, mcheck, therm_throt: Process package thresholds
Added callback registration for package threshold reports. Also added a callback to check the rate control implemented in callback or not. If there is no rate control implemented, then there is a default rate control similar to core threshold notification by delaying 300HZ between reports.
Signed-off-by Srinivas Pandruvada <[email protected]>
--- arch/x86/include/asm/mce.h | 7 ++++ arch/x86/kernel/cpu/mcheck/therm_throt.c | 63 ++++++++++++++++++++++++++++++-- 2 files changed, 66 insertions(+), 4 deletions(-)
arch/x86/include/asm/mce.h +7 -0
@@ -214,6 +214,13 @@ void mce_log_therm_throt_event(__u64 status);/* Interrupt Handler for core thermal thresholds */ extern int (*platform_thermal_notify)(__u64 msr_val); +/* Interrupt Handler for package thermal thresholds */ +extern int (*platform_thermal_package_notify)(__u64 msr_val); + +/* Callback support of rate control, return true, if +* callback has rate control */ +extern bool (*platform_thermal_package_rate_control)(void ); +#ifdef CONFIG_X86_THERMAL_VECTOR extern void mcheck_intel_therm_init (void );#else
arch/x86/kernel/cpu/mcheck/therm_throt.c +59 -4
112 lines not on this page · raw message
Signature · 7 lines
1.7.11.7 _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors