diff options
Diffstat (limited to 'arch/s390/kernel/setup.c')
-rw-r--r-- | arch/s390/kernel/setup.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c index 5ba5a5485da9..907d16ac9dc9 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) | |||
634 | struct cpuinfo_S390 *cpuinfo; | 634 | struct cpuinfo_S390 *cpuinfo; |
635 | unsigned long n = (unsigned long) v - 1; | 635 | unsigned long n = (unsigned long) v - 1; |
636 | 636 | ||
637 | preempt_disable(); | ||
637 | if (!n) { | 638 | if (!n) { |
638 | seq_printf(m, "vendor_id : IBM/S390\n" | 639 | seq_printf(m, "vendor_id : IBM/S390\n" |
639 | "# processors : %i\n" | 640 | "# processors : %i\n" |
@@ -658,6 +659,7 @@ static int show_cpuinfo(struct seq_file *m, void *v) | |||
658 | cpuinfo->cpu_id.ident, | 659 | cpuinfo->cpu_id.ident, |
659 | cpuinfo->cpu_id.machine); | 660 | cpuinfo->cpu_id.machine); |
660 | } | 661 | } |
662 | preempt_enable(); | ||
661 | return 0; | 663 | return 0; |
662 | } | 664 | } |
663 | 665 | ||