diff options
author | Borislav Petkov <bp@suse.de> | 2021-01-07 13:29:05 +0100 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2021-02-08 11:43:20 +0100 |
commit | 9223d0dccb8f8523754122f68316dd1a4f39f7f8 (patch) | |
tree | 4f27773dde344b360c3b9e18f442714527e8d825 /drivers/thermal/intel/thermal_interrupt.h | |
parent | 4f432e8bb15b352da72525144da025a46695968f (diff) | |
download | linux-stable-9223d0dccb8f8523754122f68316dd1a4f39f7f8.tar.gz linux-stable-9223d0dccb8f8523754122f68316dd1a4f39f7f8.tar.bz2 linux-stable-9223d0dccb8f8523754122f68316dd1a4f39f7f8.zip |
thermal: Move therm_throt there from x86/mce
This functionality has nothing to do with MCE, move it to the thermal
framework and untangle it from MCE.
Requested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Tested-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Link: https://lkml.kernel.org/r/20210202121003.GD18075@zn.tnic
Diffstat (limited to 'drivers/thermal/intel/thermal_interrupt.h')
-rw-r--r-- | drivers/thermal/intel/thermal_interrupt.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/thermal/intel/thermal_interrupt.h b/drivers/thermal/intel/thermal_interrupt.h new file mode 100644 index 000000000000..53f427bb58dc --- /dev/null +++ b/drivers/thermal/intel/thermal_interrupt.h @@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _INTEL_THERMAL_INTERRUPT_H +#define _INTEL_THERMAL_INTERRUPT_H + +/* Interrupt Handler for package thermal thresholds */ +extern int (*platform_thermal_package_notify)(__u64 msr_val); + +/* Interrupt Handler for core thermal thresholds */ +extern int (*platform_thermal_notify)(__u64 msr_val); + +/* Callback support of rate control, return true, if + * callback has rate control */ +extern bool (*platform_thermal_package_rate_control)(void); + +#endif /* _INTEL_THERMAL_INTERRUPT_H */ |