|
13 | 13 | #include <asm/processor.h> |
14 | 14 | #include <asm/time.h> |
15 | 15 |
|
16 | | -/* |
17 | | - * No lock; only written during early bootup by CPU 0. |
18 | | - */ |
19 | | -static RAW_NOTIFIER_HEAD(proc_cpuinfo_chain); |
20 | | - |
21 | | -int __ref register_proc_cpuinfo_notifier(struct notifier_block *nb) |
22 | | -{ |
23 | | - return raw_notifier_chain_register(&proc_cpuinfo_chain, nb); |
24 | | -} |
25 | | - |
26 | | -int proc_cpuinfo_notifier_call_chain(unsigned long val, void *v) |
27 | | -{ |
28 | | - return raw_notifier_call_chain(&proc_cpuinfo_chain, val, v); |
29 | | -} |
30 | | - |
31 | 16 | static int show_cpuinfo(struct seq_file *m, void *v) |
32 | 17 | { |
33 | 18 | unsigned long n = (unsigned long) v - 1; |
34 | 19 | unsigned int isa = cpu_data[n].isa_level; |
35 | 20 | unsigned int version = cpu_data[n].processor_id & 0xff; |
36 | 21 | unsigned int fp_version = cpu_data[n].fpu_vers; |
37 | | - struct proc_cpuinfo_notifier_args proc_cpuinfo_notifier_args; |
38 | 22 |
|
39 | 23 | #ifdef CONFIG_SMP |
40 | 24 | if (!cpu_online(n)) |
@@ -91,20 +75,13 @@ static int show_cpuinfo(struct seq_file *m, void *v) |
91 | 75 | if (cpu_has_lbt_mips) seq_printf(m, " lbt_mips"); |
92 | 76 | seq_printf(m, "\n"); |
93 | 77 |
|
94 | | - seq_printf(m, "Hardware Watchpoint\t: %s", |
95 | | - cpu_has_watch ? "yes, " : "no\n"); |
| 78 | + seq_printf(m, "Hardware Watchpoint\t: %s", str_yes_no(cpu_has_watch)); |
96 | 79 | if (cpu_has_watch) { |
97 | | - seq_printf(m, "iwatch count: %d, dwatch count: %d\n", |
| 80 | + seq_printf(m, ", iwatch count: %d, dwatch count: %d", |
98 | 81 | cpu_data[n].watch_ireg_count, cpu_data[n].watch_dreg_count); |
99 | 82 | } |
100 | 83 |
|
101 | | - proc_cpuinfo_notifier_args.m = m; |
102 | | - proc_cpuinfo_notifier_args.n = n; |
103 | | - |
104 | | - raw_notifier_call_chain(&proc_cpuinfo_chain, 0, |
105 | | - &proc_cpuinfo_notifier_args); |
106 | | - |
107 | | - seq_printf(m, "\n"); |
| 84 | + seq_printf(m, "\n\n"); |
108 | 85 |
|
109 | 86 | return 0; |
110 | 87 | } |
|
0 commit comments