diff options
author | Lan Tianyu <tianyu.lan@intel.com> | 2014-02-26 21:03:05 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-03-06 21:30:09 -0800 |
commit | 44ae49aa88441344fcb35a1b0d44b54aa08a6d3d (patch) | |
tree | 46d3af541bea706ec907dfc9c3fbd12bcd166f19 /drivers/w1 | |
parent | 3cb947fdcff6247559da0b23dc3ed6272cff8372 (diff) | |
download | linux-3.10-44ae49aa88441344fcb35a1b0d44b54aa08a6d3d.tar.gz linux-3.10-44ae49aa88441344fcb35a1b0d44b54aa08a6d3d.tar.bz2 linux-3.10-44ae49aa88441344fcb35a1b0d44b54aa08a6d3d.zip |
ACPI / processor: Rework processor throttling with work_on_cpu()
commit f3ca4164529b875374c410193bbbac0ee960895f upstream.
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>
[rjw: Changelog]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/w1')
0 files changed, 0 insertions, 0 deletions