cpusets, hotplug: Restructure functions that are invoked during hotplug
authorSrivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Thu, 24 May 2012 14:16:55 +0000 (19:46 +0530)
committerIngo Molnar <mingo@kernel.org>
Tue, 24 Jul 2012 11:53:22 +0000 (13:53 +0200)
commit7ddf96b02fe8dd441f452deef879040def5f7b34
tree779a01bad0b51eb8ca8acb96b75f5a1b06f9a6d3
parent80d1fa6463d934969b7aebf04107fc133463f0f6
cpusets, hotplug: Restructure functions that are invoked during hotplug

Separate out the cpuset related handling for CPU/Memory online/offline.
This also helps us exploit the most obvious and basic level of optimization
that any notification mechanism (CPU/Mem online/offline) has to offer us:
"We *know* why we have been invoked. So stop pretending that we are lost,
and do only the necessary amount of processing!".

And while at it, rename scan_for_empty_cpusets() to
scan_cpusets_upon_hotplug(), which is more appropriate considering how
it is restructured.

Signed-off-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20120524141650.3692.48637.stgit@srivatsabhat.in.ibm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/cpuset.h
kernel/cpuset.c
kernel/sched/core.c