From: Heiko Carstens Date: Sat, 17 Sep 2005 02:27:34 +0000 (-0700) Subject: [PATCH] s390: show_cpuinfo fix X-Git-Tag: v2.6.14-rc2~5^2~53 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b7ae9dd80a3ecf070ea0c5fe1d405cd7687d6c51;p=linux-2.6-omap-h63xx.git [PATCH] s390: show_cpuinfo fix Disable preemption in show_cpuinfo to avoid problems and the warning about smp_processor_id. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c index 5ba5a5485da..907d16ac9dc 100644 --- a/arch/s390/kernel/setup.c +++ b/arch/s390/kernel/setup.c @@ -634,6 +634,7 @@ static int show_cpuinfo(struct seq_file *m, void *v) struct cpuinfo_S390 *cpuinfo; unsigned long n = (unsigned long) v - 1; + preempt_disable(); if (!n) { seq_printf(m, "vendor_id : IBM/S390\n" "# processors : %i\n" @@ -658,6 +659,7 @@ static int show_cpuinfo(struct seq_file *m, void *v) cpuinfo->cpu_id.ident, cpuinfo->cpu_id.machine); } + preempt_enable(); return 0; }