From: Heiko Carstens Date: Thu, 15 May 2008 14:52:39 +0000 (+0200) Subject: [S390] show_interrupts: prevent cpu hotplug when walking cpu_online_map. X-Git-Tag: v2.6.26-rc3~31^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=8dd79cb1051723496bbdcea2247e49567cedb3ac;p=linux-2.6-omap-h63xx.git [S390] show_interrupts: prevent cpu hotplug when walking cpu_online_map. Surround all the code withing show_interrupts() with get/put_online_cpus() to prevent strange results wrt cpu hotplug. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky --- diff --git a/arch/s390/kernel/irq.c b/arch/s390/kernel/irq.c index c59a86dca58..e7c5bfb7c75 100644 --- a/arch/s390/kernel/irq.c +++ b/arch/s390/kernel/irq.c @@ -25,6 +25,7 @@ int show_interrupts(struct seq_file *p, void *v) static const char *intrclass_names[] = { "EXT", "I/O", }; int i = *(loff_t *) v, j; + get_online_cpus(); if (i == 0) { seq_puts(p, " "); for_each_online_cpu(j) @@ -43,7 +44,7 @@ int show_interrupts(struct seq_file *p, void *v) seq_putc(p, '\n'); } - + put_online_cpus(); return 0; }