mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 08:14:15 +08:00
1aa09b9379
The RAPL framework uses CPU hotplug locking to protect the rapl_packages
list and rp->lead_cpu to guarantee that
1. the RAPL package device is not unprobed and freed
2. the cached rp->lead_cpu is always valid
for operations like powercap sysfs accesses.
Current RAPL APIs assume being called from CPU hotplug callbacks which
hold the CPU hotplug lock, but TPMI RAPL driver invokes the APIs in the
driver's .probe() function without acquiring the CPU hotplug lock.
Fix the problem by providing both locked and lockless versions of RAPL
APIs.
Fixes:
|
||
---|---|---|
.. | ||
acpi_thermal_rel.c | ||
acpi_thermal_rel.h | ||
int340x_thermal_zone.c | ||
int340x_thermal_zone.h | ||
int3400_thermal.c | ||
int3401_thermal.c | ||
int3402_thermal.c | ||
int3403_thermal.c | ||
int3406_thermal.c | ||
Kconfig | ||
Makefile | ||
processor_thermal_device_pci_legacy.c | ||
processor_thermal_device_pci.c | ||
processor_thermal_device.c | ||
processor_thermal_device.h | ||
processor_thermal_mbox.c | ||
processor_thermal_power_floor.c | ||
processor_thermal_rapl.c | ||
processor_thermal_rfim.c | ||
processor_thermal_wt_hint.c | ||
processor_thermal_wt_req.c |