]> git.hungrycats.org Git - linux/commit
[PATCH] ppc64: tweak schedule_timeout in __cpu_die
authorNathan Lynch <nathanl@austin.ibm.com>
Mon, 23 Aug 2004 05:33:51 +0000 (22:33 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 23 Aug 2004 05:33:51 +0000 (22:33 -0700)
commit292ae1292c4f1f7c46a5dd0e67ef9741855d716b
tree0bf6c42bada201f45bc47d49c4793a8dffb92009
parent37cfbd3191f15ecb84595c45fb095033fe54bd3a
[PATCH] ppc64: tweak schedule_timeout in __cpu_die

The current code does schedule_timeout(HZ) when waiting for a cpu to die,
which is a bit coarse and tends to limit the "throughput" of my stress
tests :)

Change the HZ timeout to HZ/5, increase the number of tries to 25 so the
overall wait time is similar.  In practice, I've never seen the loop need
more than two iterations.

Signed-off-by: Nathan Lynch <nathanl@austin.ibm.com>
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc64/kernel/smp.c