diff options
author | Srivatsa S. Bhat <[email protected]> | 2012-05-24 19:46:41 +0530 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2012-07-24 13:53:18 +0200 |
commit | 80d1fa6463d934969b7aebf04107fc133463f0f6 (patch) | |
tree | 9e86e50c41016e68df655890c93a3b200c6a3ec0 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | d35be8bab9b0ce44bed4b9453f86ebf64062721e (diff) |
cpusets, hotplug: Implement cpuset tree traversal in a helper function
At present, the functions that deal with cpusets during CPU/Mem hotplug
are quite messy, since a lot of the functionality is mixed up without clear
separation. And this takes a toll on optimization as well. For example,
the function cpuset_update_active_cpus() is called on both CPU offline and CPU
online events; and it invokes scan_for_empty_cpusets(), which makes sense
only for CPU offline events. And hence, the current code ends up unnecessarily
traversing the cpuset tree during CPU online also.
As a first step towards cleaning up those functions, encapsulate the cpuset
tree traversal in a helper function, so as to facilitate upcoming changes.
Signed-off-by: Srivatsa S. Bhat <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions