linux/drivers/acpi
Lan Tianyu f3ca416452 ACPI / processor: Rework processor throttling with work_on_cpu()
acpi_processor_set_throttling() uses set_cpus_allowed_ptr() to make
sure that the (struct acpi_processor)->acpi_processor_set_throttling()
callback will run on the right CPU.  However, the function may be
called from a worker thread already bound to a different CPU in which
case that won't work.

Make acpi_processor_set_throttling() use work_on_cpu() as appropriate
instead of abusing set_cpus_allowed_ptr().

Reported-and-tested-by: Jiri Olsa <jolsa@redhat.com>
Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
Cc: All applicable <stable@vger.kernel.org>
[rjw: Changelog]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2014-02-27 00:21:05 +01:00
..
acpica ACPICA: Remove bool usage from ACPICA. 2014-01-27 23:59:08 +01:00
apei ACPI and power management updates for 3.14-rc1 2014-01-24 15:51:02 -08:00
ac.c ACPI / AC: fix AC driver compile error when CONFIG_PM_SLEEP is undefined 2014-02-13 15:13:44 +01:00
acpi_cmos_rtc.c
acpi_extlog.c ACPI and power management updates for 3.14-rc1 2014-01-24 15:51:02 -08:00
acpi_ipmi.c
acpi_lpss.c Revert "ACPI: Add BayTrail SoC GPIO and LPSS ACPI IDs" 2014-01-18 14:04:58 +01:00
acpi_memhotplug.c
acpi_pad.c ACPI and power management updates for 3.14-rc1 2014-01-24 15:51:02 -08:00
acpi_platform.c
acpi_processor.c Merge branches 'acpi-processor', 'acpi-hotplug', 'acpi-init', 'acpi-pm' and 'acpica' 2014-01-29 11:47:18 +01:00
battery.c ACPI / battery: fix battery driver compile error when CONFIG_PM_SLEEP is undefined 2014-02-13 15:13:44 +01:00
bgrt.c
blacklist.c Revert "ACPI: Blacklist Win8 OSI for some HP laptop 2013 models" 2014-02-20 01:33:40 +01:00
bus.c Merge branches 'acpi-processor', 'acpi-hotplug', 'acpi-init', 'acpi-pm' and 'acpica' 2014-01-29 11:47:18 +01:00
button.c ACPI / button: fix button driver compile error when CONFIG_PM_SLEEP is undefined 2014-02-13 15:13:44 +01:00
container.c ACPI / container: Fix error code path in container_device_attach() 2014-02-12 14:55:16 +01:00
custom_method.c
debugfs.c
device_pm.c Merge branches 'acpi-processor', 'acpi-hotplug', 'acpi-init', 'acpi-pm' and 'acpica' 2014-01-29 11:47:18 +01:00
dock.c ACPI / dock: Make 'docked' sysfs attribute work as documented 2014-02-15 01:29:06 +01:00
ec_sys.c
ec.c
event.c
fan.c ACPI / fan: fix fan driver compile error when CONFIG_PM_SLEEP is undefined 2014-02-13 15:13:44 +01:00
glue.c
hed.c
internal.h
Kconfig
Makefile
numa.c
nvs.c
osl.c
pci_irq.c ACPI / PCI: Fix memory leak in acpi_pci_irq_enable() 2014-02-18 15:47:23 +01:00
pci_link.c
pci_root.c ACPI and power management updates for 3.14-rc1 2014-01-24 15:51:02 -08:00
pci_slot.c
power.c
proc.c ACPI / proc: remove unneeded NULL check 2014-02-05 01:06:21 +01:00
processor_core.c Merge branches 'acpi-processor', 'acpi-hotplug', 'acpi-init', 'acpi-pm' and 'acpica' 2014-01-29 11:47:18 +01:00
processor_driver.c
processor_idle.c ACPI and power management updates for 3.14-rc1 2014-01-24 15:51:02 -08:00
processor_perflib.c
processor_thermal.c
processor_throttling.c ACPI / processor: Rework processor throttling with work_on_cpu() 2014-02-27 00:21:05 +01:00
reboot.c
resource.c
sbs.c Merge branches 'acpi-pm' and 'acpi-video' 2014-02-21 01:28:12 +01:00
sbshc.c
sbshc.h
scan.c ACPI / hotplug: Fix panic on eject to ejected device 2014-02-05 12:14:43 +01:00
sleep.c
sleep.h
sysfs.c Merge branches 'acpi-processor', 'acpi-hotplug', 'acpi-init', 'acpi-pm' and 'acpica' 2014-01-29 11:47:18 +01:00
tables.c
thermal.c ACPI / thermal: fix thermal driver compile error when CONFIG_PM_SLEEP is undefined 2014-02-13 15:13:45 +01:00
utils.c ACPI / utils: remove a pointless NULL check 2014-02-05 01:05:24 +01:00
video_detect.c ACPI / video: Add systems that should favour native backlight interface 2014-02-20 01:33:40 +01:00
video.c ACPI / video: Add systems that should favour native backlight interface 2014-02-20 01:33:40 +01:00
wakeup.c