]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] fix /proc/stat handler for ARM, SPARC64, others..
authorAndrew Morton <akpm@osdl.org>
Thu, 4 Sep 2003 02:51:38 +0000 (19:51 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Thu, 4 Sep 2003 02:51:38 +0000 (19:51 -0700)
Some references to irq_stat[] snuck into generic code.  It doesn't work on
several architectures.

So revert that little improvement to the original version.

fs/proc/proc_misc.c

index fb30277e2393e2e6bb3c9ff021d9563af2a58231..b580465fa08fcc644e4c64327e126bbbf6768451 100644 (file)
@@ -44,7 +44,6 @@
 #include <linux/jiffies.h>
 #include <linux/sysrq.h>
 #include <linux/vmalloc.h>
-#include <linux/irq.h>
 #include <asm/uaccess.h>
 #include <asm/pgtable.h>
 #include <asm/io.h>
@@ -417,19 +416,8 @@ int show_stat(struct seq_file *p, void *v)
        seq_printf(p, "intr %u", sum);
 
 #if !defined(CONFIG_PPC64) && !defined(CONFIG_ALPHA)
-{
-       static int last_irq = 0;
-
-       for (i = last_irq; i < NR_IRQS; i++) {
-               if (irq_desc[i].action) {
-                       if (i > last_irq)
-                               last_irq = i;
-               }
-       }
-
-       for (i = 0; i <= last_irq; i++)
+       for (i = 0; i <= NR_IRQS; i++)
                seq_printf(p, " %u", kstat_irqs(i));
-}
 #endif
 
        seq_printf(p,