Commit 55affa7a authored by Ricardo Neri's avatar Ricardo Neri Committed by Jun Tian
Browse files

thermal: intel: hfi: Handle CPU hotplug events

mainline inclusion
from mainline-5.18
commit 2d74e631
category: feature
bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I5DSOL



Intel_SIG: commit 2d74e631 thermal: intel: hfi: Handle CPU hotplug
events.
Backport for Intel HFI (Hardware Feedback Interface) support

-------------------------------------

All CPUs in a package are represented in an HFI table. There exists an
HFI table per package. Thus, CPUs in a package need to coordinate to
initialize and access the table. Do such coordination during CPU hotplug.
Use the first CPU to come online in a package to initialize the HFI
instance and the data structure representing it. Other CPUs in the same
package need only to register or unregister themselves in that data
structure.

The HFI depends on both the package-level thermal management and the local
APIC thermal local vector. Thus, to ensure that a CPU coming online has an
associated HFI instance when the hardware issues an HFI event, enable the
HFI only after having enabled the local APIC thermal vector. The thermal
throttle driver takes care of the needed package-level initialization.

Reviewed-by: default avatarLen Brown <len.brown@intel.com>
Signed-off-by: default avatarRicardo Neri <ricardo.neri-calderon@linux.intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: default avataryingbao jia <yingbao.jia@intel.com>
Signed-off-by: default avatarJun Tian <jun.j.tian@intel.com>
parent cd073e47
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment