/proc/stat on UP

From: Malware (Michael.Mueller4@post.rwth-aachen.de)
Date: Mon Jun 05 2000 - 03:11:42 EST


Hi ppl,

there is an bug in ./fs/proc/proc_misc.c in 2.4.0-test1 and ac-patches.
It does print the per CPU line of the usage statistic for uni processor
machines too while they are counted for SMP machines only. E.g. for x86
these stats are performed in ./arch/i386/kernel/apic.c and only if
CONFIG_SMP is defined.

So there are two obvious fixes
1. Suppress the output of the per CPU stats on UP.
2. Update the per CPU statistics on UP too.

Might someone more involved decide this political question.

Michael

PS: CC to Linus as maintainer of the general SMP support.
PPS: This is a repost since the original did not propagate on the list

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jun 07 2000 - 21:00:20 EST