[PATCH] Use cache_decay_ticks instead of a constant
This patch, based on Ken Chen's patch, changes the default 2.5 msec
migration-cutoff value to be based on cache_decay_ticks, which is what
we used for a long time prior the sched-domains code. (If an
architecture does not set cache_decay_ticks then 2.5 msec is used.)
This causes the following new migration-cutoff values on various SMP
systems:
[*] ppc64 does not set cache_decay_ticks so we fall back to the
default.
I believe in light of previous testing we could attempt this for 2.6.9 as
well. (Note: that the 2.6.9-rc3 patch looks similar but needs to patch
kernel/sched.c. Note2: this patch is different from Ken's original one.)
Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Ken Chen <kenneth.w.chen@intel.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>