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:Len Brown <len.brown@intel.com> Signed-off-by:
Ricardo Neri <ricardo.neri-calderon@linux.intel.com> Signed-off-by:
Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by:
yingbao jia <yingbao.jia@intel.com> Signed-off-by:
Jun Tian <jun.j.tian@intel.com>
Loading
Please sign in to comment