]> git.hungrycats.org Git - linux/commit
[PATCH] sched: use for_each_cpu
authorAnton Blanchard <anton@samba.org>
Mon, 2 Aug 2004 03:09:24 +0000 (20:09 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 2 Aug 2004 03:09:24 +0000 (20:09 -0700)
commitf9d21ae77239647093e15c0239dd9c381cd090a8
tree1a0a52fe675855c15a5be6dae157abd4d2a2d0e1
parentf059989bca20a55ccfc4bc8b9283e837874e605c
[PATCH] sched: use for_each_cpu

The per cpu schedule counters need to be summed up over all possible cpus.
When testing hotplug cpu remove I saw the sum of the online cpu count for
nr_uninterruptible go negative which made the load average go nuts.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/sched.c