diff options
author | Tejun Heo <tj@kernel.org> | 2012-07-17 12:39:28 -0700 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2012-07-17 12:39:28 -0700 |
commit | 8db25e7891a47e03db6f04344a9c92be16e391bb (patch) | |
tree | e093119c71e655b54b159fed76b654a437b1ff30 /kernel/kthread.c | |
parent | 628c78e7ea19d5b70d2b6a59030362168cdbe1ad (diff) |
workqueue: simplify CPU hotplug code
With trustee gone, CPU hotplug code can be simplified.
* gcwq_claim/release_management() now grab and release gcwq lock too
respectively and gained _and_lock and _and_unlock postfixes.
* All CPU hotplug logic was implemented in workqueue_cpu_callback()
which was called by workqueue_cpu_up/down_callback() for the correct
priority. This was because up and down paths shared a lot of logic,
which is no longer true. Remove workqueue_cpu_callback() and move
all hotplug logic into the two actual callbacks.
This patch doesn't make any functional changes.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: "Rafael J. Wysocki" <rjw@sisk.pl>
Diffstat (limited to 'kernel/kthread.c')
0 files changed, 0 insertions, 0 deletions