diff options
author | Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com> | 2016-02-03 01:11:38 +0530 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-02-05 02:38:02 +0100 |
commit | 6d167a44e6c8da3316e037b788585fcf96112bea (patch) | |
tree | 367a16c1d47d2bd8b838e4ead4321b4aebc6c958 /drivers/hwmon/tmp401.c | |
parent | 86622cb8c57abb05fe95bea3a068949c0ca79fc3 (diff) | |
download | linux-6d167a44e6c8da3316e037b788585fcf96112bea.tar.gz linux-6d167a44e6c8da3316e037b788585fcf96112bea.tar.xz |
cpufreq: powernv: Hot-plug safe the kworker thread
In the kworker_thread powernv_cpufreq_work_fn(), we can end up
sending an IPI to a cpu going offline. This is a rare corner case
which is fixed using {get/put}_online_cpus(). Along with this fix,
this patch adds changes to do oneshot cpumask_{clear/and} operation.
Suggested-by: Shreyas B Prabhu <shreyas@linux.vnet.ibm.com>
Suggested-by: Gautham R Shenoy <ego@linux.vnet.ibm.com>
Signed-off-by: Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
Reviewed-by: Gautham R. Shenoy <ego@linux.vnet.ibm.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/hwmon/tmp401.c')
0 files changed, 0 insertions, 0 deletions