summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2003-09-03 19:51:38 -0700
committerLinus Torvalds <torvalds@home.osdl.org>2003-09-03 19:51:38 -0700
commit1db8f9f9ff0de5ef592ce9419c55ad3a0b4808a6 (patch)
treeb4cdc80df4c98e4a548f5d5332a9e7b274e03184
parentb2a5082def730397f381dc5d0125c5889bd667fb (diff)
[PATCH] fix /proc/stat handler for ARM, SPARC64, others..
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.
-rw-r--r--fs/proc/proc_misc.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/fs/proc/proc_misc.c b/fs/proc/proc_misc.c
index fb30277e2393..b580465fa08f 100644
--- a/fs/proc/proc_misc.c
+++ b/fs/proc/proc_misc.c
@@ -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,