summaryrefslogtreecommitdiff
path: root/fs/proc
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-05-19 02:41:43 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-05-19 02:41:43 -0700
commit2cb2f31fba9f82ffc1a922bf9c731b01cbbffe29 (patch)
treeef6b79fcc7b6c5b34fcba1477571b222c2ecee0f /fs/proc
parent4a40d604bcf84bd5863c9a7e1d6ca218e164d92f (diff)
[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).
Diffstat (limited to 'fs/proc')
-rw-r--r--fs/proc/proc_misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/proc_misc.c b/fs/proc/proc_misc.c
index be50b44a8471..60e38c7966f4 100644
--- a/fs/proc/proc_misc.c
+++ b/fs/proc/proc_misc.c
@@ -368,7 +368,7 @@ int show_stat(struct seq_file *p, void *v)
if (wall_to_monotonic.tv_nsec)
--jif;
- for_each_online_cpu(i) {
+ for_each_cpu(i) {
int j;
user += kstat_cpu(i).cpustat.user;