ia64/xen-unstable

changeset 10134:c6da0c5b03ff

Patch linux so that /proc/stat shows all -- not just online -- CPUs.
This way, tools such as TOP don't freak out when CPUs are hotplugged.
author ack@kneesa.uk.xensource.com
date Mon May 22 15:42:54 2006 +0100 (2006-05-22)
parents dec7f819293c
children dbcb8acc8f59
files patches/linux-2.6.16.13/xen-hotplug.patch
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/linux-2.6.16.13/xen-hotplug.patch	Mon May 22 15:42:54 2006 +0100
     1.3 @@ -0,0 +1,11 @@
     1.4 +--- ../pristine-linux-2.6.16.13/fs/proc/proc_misc.c	2006-05-02 22:38:44.000000000 +0100
     1.5 ++++ ./fs/proc/proc_misc.c	2006-05-22 15:29:34.000000000 +0100
     1.6 +@@ -433,7 +433,7 @@ static int show_stat(struct seq_file *p,
     1.7 + 		(unsigned long long)cputime64_to_clock_t(irq),
     1.8 + 		(unsigned long long)cputime64_to_clock_t(softirq),
     1.9 + 		(unsigned long long)cputime64_to_clock_t(steal));
    1.10 +-	for_each_online_cpu(i) {
    1.11 ++	for_each_cpu(i) {
    1.12 + 
    1.13 + 		/* Copy values here to work around gcc-2.95.3, gcc-2.96 */
    1.14 + 		user = kstat_cpu(i).cpustat.user;