diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2010-04-16 08:59:29 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-04-23 05:02:02 -0400 |
commit | 669c55e9f99b90e46eaa0f98a67ec53d46dc969a (patch) | |
tree | 9f60bcf779e5ec786c05b8053b59e091edcb418c /include/linux/sched.h | |
parent | 74f5187ac873042f502227701ed1727e7c5fbfa9 (diff) |
sched: Pre-compute cpumask_weight(sched_domain_span(sd))
Dave reported that his large SPARC machines spend lots of time in
hweight64(), try and optimize some of those needless cpumask_weight()
invocations (esp. with the large offstack cpumasks these are very
expensive indeed).
Reported-by: David Miller <davem@davemloft.net>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index e3e900f318d7..dfea40574b2a 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -960,6 +960,7 @@ struct sched_domain { | |||
960 | char *name; | 960 | char *name; |
961 | #endif | 961 | #endif |
962 | 962 | ||
963 | unsigned int span_weight; | ||
963 | /* | 964 | /* |
964 | * Span of all CPUs in this domain. | 965 | * Span of all CPUs in this domain. |
965 | * | 966 | * |