summaryrefslogtreecommitdiffstats
path: root/ipc/ipc_sysctl.c
diff options
context:
space:
mode:
authorLan Tianyu2014-02-26 14:03:05 +0100
committerRafael J. Wysocki2014-02-27 00:21:05 +0100
commitf3ca4164529b875374c410193bbbac0ee960895f (patch)
tree3fab24dba3ef21ba84f1c03c92a4223a249431d9 /ipc/ipc_sysctl.c
parentLinux 3.14-rc4 (diff)
downloadkernel-qcow2-linux-f3ca4164529b875374c410193bbbac0ee960895f.tar.gz
kernel-qcow2-linux-f3ca4164529b875374c410193bbbac0ee960895f.tar.xz
kernel-qcow2-linux-f3ca4164529b875374c410193bbbac0ee960895f.zip
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>
Diffstat (limited to 'ipc/ipc_sysctl.c')
0 files changed, 0 insertions, 0 deletions