]> git.hungrycats.org Git - linux/commit
[PATCH] Fix overzealous use of online cpu iterators
authorAndrew Morton <akpm@osdl.org>
Wed, 19 May 2004 09:41:43 +0000 (02:41 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 19 May 2004 09:41:43 +0000 (02:41 -0700)
commit2cb2f31fba9f82ffc1a922bf9c731b01cbbffe29
treeef6b79fcc7b6c5b34fcba1477571b222c2ecee0f
parent4a40d604bcf84bd5863c9a7e1d6ca218e164d92f
[PATCH] Fix overzealous use of online cpu iterators

From: Rusty Russell <rusty@rustcorp.com.au>

The IA64 hotplug CPU merge seems to have included some core changes: in
particular the recalc_bh_state() needs to sum for all (including offline)
cpus, since we don't empty the counters on CPU down.  The totals printed by
/proc/stat (the first loop) should include offline cpus, too (apparently
printing out the per-cpu lines for offline cpus confuses top).
fs/buffer.c
fs/proc/proc_misc.c