sched: Pre-compute cpumask_weight(sched_domain_span(sd))
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Fri, 16 Apr 2010 12:59:29 +0000 (14:59 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 23 Apr 2010 09:02:02 +0000 (11:02 +0200)
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>

No differences found