X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fproc%2Fproc_misc.c;h=b3d8003780b25bc893fe4faa6bd7bdb055548b6f;hb=9213980e6a70d8473e0ffd4b39ab5b6caaba9ff5;hp=0b4de431c31e8f3e18eb55561ca15f591d6f5b37;hpb=a8e794ca871505c8ea96cc102f4ad555c5231d7f;p=linux-2.6.git diff --git a/fs/proc/proc_misc.c b/fs/proc/proc_misc.c index 0b4de431c..b3d800378 100644 --- a/fs/proc/proc_misc.c +++ b/fs/proc/proc_misc.c @@ -44,7 +44,9 @@ #include #include #include -#include +#include +#include + #include #include #include @@ -394,7 +396,7 @@ int show_stat(struct seq_file *p, void *v) (unsigned long long)jiffies_64_to_clock_t(iowait), (unsigned long long)jiffies_64_to_clock_t(irq), (unsigned long long)jiffies_64_to_clock_t(softirq)); - for_each_cpu(i) { + for_each_online_cpu(i) { /* Copy values here to work around gcc-2.95.3, gcc-2.96 */ user = kstat_cpu(i).cpustat.user; @@ -635,7 +637,7 @@ static ssize_t write_sysrq_trigger(struct file *file, const char __user *buf, if (get_user(c, buf)) return -EFAULT; - handle_sysrq(c, NULL, NULL); + __handle_sysrq(c, NULL, NULL); } return count; }