thermal: Move therm_throt there from x86/mce
authorBorislav Petkov <bp@suse.de>
Thu, 7 Jan 2021 12:29:05 +0000 (13:29 +0100)
committerBorislav Petkov <bp@suse.de>
Mon, 8 Feb 2021 10:43:20 +0000 (11:43 +0100)
commit9223d0dccb8f8523754122f68316dd1a4f39f7f8
tree4f27773dde344b360c3b9e18f442714527e8d825
parent4f432e8bb15b352da72525144da025a46695968f
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
12 files changed:
arch/x86/Kconfig
arch/x86/include/asm/mce.h
arch/x86/include/asm/thermal.h [new file with mode: 0644]
arch/x86/kernel/cpu/intel.c
arch/x86/kernel/cpu/mce/Makefile
arch/x86/kernel/cpu/mce/intel.c
arch/x86/kernel/irq.c
drivers/thermal/intel/Kconfig
drivers/thermal/intel/Makefile
drivers/thermal/intel/therm_throt.c [moved from arch/x86/kernel/cpu/mce/therm_throt.c with 97% similarity]
drivers/thermal/intel/thermal_interrupt.h [new file with mode: 0644]
drivers/thermal/intel/x86_pkg_temp_thermal.c