thermal: intel: intel_tcc_cooling: Detect TCC lock bit
authorZhang Rui <rui.zhang@intel.com>
Tue, 8 Nov 2022 08:12:19 +0000 (16:12 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 9 Nov 2022 13:58:02 +0000 (14:58 +0100)
commitbe6abd3ed65678f8c7bd212808a9841785c2d5ca
treea8e8f36218a61bc02c939fa0d22fd818de309db8
parent54d9135cf223f221546bd51b0f5e4a73e99891f4
thermal: intel: intel_tcc_cooling: Detect TCC lock bit

When MSR_IA32_TEMPERATURE_TARGET is locked, TCC Offset can not be
updated even if the PROGRAMMABE Bit is set.

Yield the driver on platforms with MSR_IA32_TEMPERATURE_TARGET locked.

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/intel/intel_tcc_cooling.c