From 1db8f9f9ff0de5ef592ce9419c55ad3a0b4808a6 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 3 Sep 2003 19:51:38 -0700 Subject: [PATCH] [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. --- fs/proc/proc_misc.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/fs/proc/proc_misc.c b/fs/proc/proc_misc.c index fb30277e2393e..b580465fa08fc 100644 --- a/fs/proc/proc_misc.c +++ b/fs/proc/proc_misc.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include @@ -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, -- 2.53.0