Commit 20c7a192 authored by Anton Blanchard's avatar Anton Blanchard Committed by Linus Torvalds

[PATCH] disable printout of interrupts in /proc/stat on ppc64

The interrupt printout in /proc/stat doesnt make sense on many ppc64
boxes because we remap interrupts. Also, with enough active interrupt
sources /proc/stat might get much bigger than a page which results
in memory corruption.
parent 8416d21c
......@@ -356,7 +356,7 @@ static int kstat_read_proc(char *page, char **start, off_t off,
}
len += sprintf(page + len, "intr %u", sum);
#if !defined(CONFIG_ARCH_S390)
#if !defined(CONFIG_ARCH_S390) && !defined(CONFIG_PPC64)
for (i = 0 ; i < NR_IRQS ; i++)
len += sprintf(page + len, " %u", kstat_irqs(i));
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment