aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/powernow-k8.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2012-09-18 12:48:43 -0700
committerTejun Heo <tj@kernel.org>2012-09-19 10:13:12 -0700
commited48ece27cd3d5ee0354c32bbaec0f3e1d4715c3 (patch)
tree9ead3fba10ccd3118e6c4f38ed61cbf2bb2cbb3f /drivers/cpufreq/powernow-k8.c
parentworkqueue: always clear WORKER_REBIND in busy_worker_rebind_fn() (diff)
downloadlinux-dev-ed48ece27cd3d5ee0354c32bbaec0f3e1d4715c3.tar.xz
linux-dev-ed48ece27cd3d5ee0354c32bbaec0f3e1d4715c3.zip
workqueue: reimplement work_on_cpu() using system_wq
The existing work_on_cpu() implementation is hugely inefficient. It creates a new kthread, execute that single function and then let the kthread die on each invocation. Now that system_wq can handle concurrent executions, there's no advantage of doing this. Reimplement work_on_cpu() using system_wq which makes it simpler and way more efficient. stable: While this isn't a fix in itself, it's needed to fix a workqueue related bug in cpufreq/powernow-k8. AFAICS, this shouldn't break other existing users. Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Jiri Kosina <jkosina@suse.cz> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Bjorn Helgaas <bhelgaas@google.com> Cc: Len Brown <lenb@kernel.org> Cc: Rafael J. Wysocki <rjw@sisk.pl> Cc: stable@vger.kernel.org
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions