diff options
author | Siddha, Suresh B <suresh.b.siddha@intel.com> | 2006-10-03 10:14:09 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-03 17:04:06 +0200 |
commit | 89c4710ee9bbbefe6a4d469d9f36266a92c275c5 (patch) | |
tree | f84fe28e48bbda210f01f22ae0065f7ed1fcc5e1 /mm | |
parent | [PATCH] sched: introduce child field in sched_domain (diff) | |
download | linux-89c4710ee9bbbefe6a4d469d9f36266a92c275c5.tar.xz linux-89c4710ee9bbbefe6a4d469d9f36266a92c275c5.zip |
[PATCH] sched: cleanup sched_group cpu_power setup
Up to now sched group's cpu_power for each sched domain is initialized
independently. This made the setup code ugly as the new sched domains are
getting added.
Make the sched group cpu_power setup code generic, by using domain child
field and new domain flag in sched_domain. For most of the sched
domains(except NUMA), sched group's cpu_power is now computed generically
using the domain properties of itself and of the child domain.
sched groups in NUMA domains are setup little differently and hence they
don't use this generic mechanism.
Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Acked-by: Ingo Molnar <mingo@elte.hu>
Acked-by: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: Paul Jackson <pj@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions