diff options
author | Lan Tianyu <[email protected]> | 2014-02-26 21:03:05 +0800 |
---|---|---|
committer | Rafael J. Wysocki <[email protected]> | 2014-02-27 00:21:05 +0100 |
commit | f3ca4164529b875374c410193bbbac0ee960895f (patch) | |
tree | 3fab24dba3ef21ba84f1c03c92a4223a249431d9 /tools/perf/scripts/python/sctop.py | |
parent | cfbf8d4857c26a8a307fb7cd258074c9dcd8c691 (diff) |
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 <[email protected]>
Signed-off-by: Lan Tianyu <[email protected]>
Cc: All applicable <[email protected]>
[rjw: Changelog]
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions