thermal/drivers/intel: Allow processing of HWP interrupt
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Fri, 20 Aug 2021 02:40:05 +0000 (19:40 -0700)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 9 Sep 2021 14:33:20 +0000 (16:33 +0200)
commit5950fc44a57ace59f21dccfd792250019348a182
tree61706d4b98778f40bbb345ffa7b7ca01b0d83857
parent0284b52e85341e3cd4b70c8b2423fd23b8a003a8
thermal/drivers/intel: Allow processing of HWP interrupt

Add a weak function to process HWP (Hardware P-states) notifications and
move updating HWP_STATUS MSR to this function.

This allows HWP interrupts to be processed by the intel_pstate driver in
HWP mode by overriding the implementation.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Acked-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210820024006.2347720-1-srinivas.pandruvada@linux.intel.com
drivers/thermal/intel/therm_throt.c
drivers/thermal/intel/thermal_interrupt.h