diff options
author | Greg Ungerer <gerg@snapgear.com> | 2007-07-20 03:31:47 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-20 11:44:20 -0400 |
commit | 22982a5687d8abf7bafe6d307585464f47089f18 (patch) | |
tree | b2f3de3a66149d6f6f49ce9059c379885b117798 /arch/m68knommu | |
parent | e3bbb3f05339de438faf54124f25c92e6fe4ac2e (diff) |
m68knommu: reformat show_cpuinfo()
Reformat show_cpuinfo() to be consistent with normal coding style
(and rest of this file).
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/m68knommu')
-rw-r--r-- | arch/m68knommu/kernel/setup.c | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/arch/m68knommu/kernel/setup.c b/arch/m68knommu/kernel/setup.c index 80f4e9d74ac1..2203f694f26b 100644 --- a/arch/m68knommu/kernel/setup.c +++ b/arch/m68knommu/kernel/setup.c | |||
@@ -231,32 +231,33 @@ void setup_arch(char **cmdline_p) | |||
231 | /* | 231 | /* |
232 | * Get CPU information for use by the procfs. | 232 | * Get CPU information for use by the procfs. |
233 | */ | 233 | */ |
234 | |||
235 | static int show_cpuinfo(struct seq_file *m, void *v) | 234 | static int show_cpuinfo(struct seq_file *m, void *v) |
236 | { | 235 | { |
237 | char *cpu, *mmu, *fpu; | 236 | char *cpu, *mmu, *fpu; |
238 | u_long clockfreq; | 237 | u_long clockfreq; |
239 | 238 | ||
240 | cpu = CPU; | 239 | cpu = CPU; |
241 | mmu = "none"; | 240 | mmu = "none"; |
242 | fpu = "none"; | 241 | fpu = "none"; |
243 | 242 | ||
244 | #ifdef CONFIG_COLDFIRE | 243 | #ifdef CONFIG_COLDFIRE |
245 | clockfreq = (loops_per_jiffy*HZ)*3; | 244 | clockfreq = (loops_per_jiffy * HZ) * 3; |
246 | #else | 245 | #else |
247 | clockfreq = (loops_per_jiffy*HZ)*16; | 246 | clockfreq = (loops_per_jiffy * HZ) * 16; |
248 | #endif | 247 | #endif |
249 | 248 | ||
250 | seq_printf(m, "CPU:\t\t%s\n" | 249 | seq_printf(m, "CPU:\t\t%s\n" |
251 | "MMU:\t\t%s\n" | 250 | "MMU:\t\t%s\n" |
252 | "FPU:\t\t%s\n" | 251 | "FPU:\t\t%s\n" |
253 | "Clocking:\t%lu.%1luMHz\n" | 252 | "Clocking:\t%lu.%1luMHz\n" |
254 | "BogoMips:\t%lu.%02lu\n" | 253 | "BogoMips:\t%lu.%02lu\n" |
255 | "Calibration:\t%lu loops\n", | 254 | "Calibration:\t%lu loops\n", |
256 | cpu, mmu, fpu, | 255 | cpu, mmu, fpu, |
257 | clockfreq/1000000,(clockfreq/100000)%10, | 256 | clockfreq / 1000000, |
258 | (loops_per_jiffy*HZ)/500000,((loops_per_jiffy*HZ)/5000)%100, | 257 | (clockfreq / 100000) % 10, |
259 | (loops_per_jiffy*HZ)); | 258 | (loops_per_jiffy * HZ) / 500000, |
259 | ((loops_per_jiffy * HZ) / 5000) % 100, | ||
260 | (loops_per_jiffy * HZ)); | ||
260 | 261 | ||
261 | return 0; | 262 | return 0; |
262 | } | 263 | } |