diff options
Diffstat (limited to 'arch/s390/kernel/processor.c')
-rw-r--r-- | arch/s390/kernel/processor.c | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/arch/s390/kernel/processor.c b/arch/s390/kernel/processor.c index 644548e615c6..311e9d712888 100644 --- a/arch/s390/kernel/processor.c +++ b/arch/s390/kernel/processor.c | |||
@@ -13,7 +13,7 @@ | |||
13 | #include <linux/smp.h> | 13 | #include <linux/smp.h> |
14 | #include <linux/seq_file.h> | 14 | #include <linux/seq_file.h> |
15 | #include <linux/delay.h> | 15 | #include <linux/delay.h> |
16 | 16 | #include <linux/cpu.h> | |
17 | #include <asm/elf.h> | 17 | #include <asm/elf.h> |
18 | #include <asm/lowcore.h> | 18 | #include <asm/lowcore.h> |
19 | #include <asm/param.h> | 19 | #include <asm/param.h> |
@@ -35,17 +35,6 @@ void __cpuinit cpu_init(void) | |||
35 | } | 35 | } |
36 | 36 | ||
37 | /* | 37 | /* |
38 | * print_cpu_info - print basic information about a cpu | ||
39 | */ | ||
40 | void __cpuinit print_cpu_info(void) | ||
41 | { | ||
42 | struct cpuid *id = &per_cpu(cpu_id, smp_processor_id()); | ||
43 | |||
44 | pr_info("Processor %d started, address %d, identification %06X\n", | ||
45 | S390_lowcore.cpu_nr, stap(), id->ident); | ||
46 | } | ||
47 | |||
48 | /* | ||
49 | * show_cpuinfo - Get information on one CPU for use by procfs. | 38 | * show_cpuinfo - Get information on one CPU for use by procfs. |
50 | */ | 39 | */ |
51 | static int show_cpuinfo(struct seq_file *m, void *v) | 40 | static int show_cpuinfo(struct seq_file *m, void *v) |
@@ -57,9 +46,8 @@ static int show_cpuinfo(struct seq_file *m, void *v) | |||
57 | unsigned long n = (unsigned long) v - 1; | 46 | unsigned long n = (unsigned long) v - 1; |
58 | int i; | 47 | int i; |
59 | 48 | ||
60 | s390_adjust_jiffies(); | ||
61 | preempt_disable(); | ||
62 | if (!n) { | 49 | if (!n) { |
50 | s390_adjust_jiffies(); | ||
63 | seq_printf(m, "vendor_id : IBM/S390\n" | 51 | seq_printf(m, "vendor_id : IBM/S390\n" |
64 | "# processors : %i\n" | 52 | "# processors : %i\n" |
65 | "bogomips per cpu: %lu.%02lu\n", | 53 | "bogomips per cpu: %lu.%02lu\n", |
@@ -71,7 +59,7 @@ static int show_cpuinfo(struct seq_file *m, void *v) | |||
71 | seq_printf(m, "%s ", hwcap_str[i]); | 59 | seq_printf(m, "%s ", hwcap_str[i]); |
72 | seq_puts(m, "\n"); | 60 | seq_puts(m, "\n"); |
73 | } | 61 | } |
74 | 62 | get_online_cpus(); | |
75 | if (cpu_online(n)) { | 63 | if (cpu_online(n)) { |
76 | struct cpuid *id = &per_cpu(cpu_id, n); | 64 | struct cpuid *id = &per_cpu(cpu_id, n); |
77 | seq_printf(m, "processor %li: " | 65 | seq_printf(m, "processor %li: " |
@@ -80,7 +68,7 @@ static int show_cpuinfo(struct seq_file *m, void *v) | |||
80 | "machine = %04X\n", | 68 | "machine = %04X\n", |
81 | n, id->version, id->ident, id->machine); | 69 | n, id->version, id->ident, id->machine); |
82 | } | 70 | } |
83 | preempt_enable(); | 71 | put_online_cpus(); |
84 | return 0; | 72 | return 0; |
85 | } | 73 | } |
86 | 74 | ||