Commit 22982a56 authored by Greg Ungerer's avatar Greg Ungerer Committed by Linus Torvalds

m68knommu: reformat show_cpuinfo()

Reformat show_cpuinfo() to be consistent with normal coding style
(and rest of this file).
Signed-off-by: default avatarGreg Ungerer <gerg@uclinux.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent e3bbb3f0
...@@ -231,32 +231,33 @@ void setup_arch(char **cmdline_p) ...@@ -231,32 +231,33 @@ void setup_arch(char **cmdline_p)
/* /*
* Get CPU information for use by the procfs. * Get CPU information for use by the procfs.
*/ */
static int show_cpuinfo(struct seq_file *m, void *v) static int show_cpuinfo(struct seq_file *m, void *v)
{ {
char *cpu, *mmu, *fpu; char *cpu, *mmu, *fpu;
u_long clockfreq; u_long clockfreq;
cpu = CPU; cpu = CPU;
mmu = "none"; mmu = "none";
fpu = "none"; fpu = "none";
#ifdef CONFIG_COLDFIRE #ifdef CONFIG_COLDFIRE
clockfreq = (loops_per_jiffy*HZ)*3; clockfreq = (loops_per_jiffy * HZ) * 3;
#else #else
clockfreq = (loops_per_jiffy*HZ)*16; clockfreq = (loops_per_jiffy * HZ) * 16;
#endif #endif
seq_printf(m, "CPU:\t\t%s\n" seq_printf(m, "CPU:\t\t%s\n"
"MMU:\t\t%s\n" "MMU:\t\t%s\n"
"FPU:\t\t%s\n" "FPU:\t\t%s\n"
"Clocking:\t%lu.%1luMHz\n" "Clocking:\t%lu.%1luMHz\n"
"BogoMips:\t%lu.%02lu\n" "BogoMips:\t%lu.%02lu\n"
"Calibration:\t%lu loops\n", "Calibration:\t%lu loops\n",
cpu, mmu, fpu, cpu, mmu, fpu,
clockfreq/1000000,(clockfreq/100000)%10, clockfreq / 1000000,
(loops_per_jiffy*HZ)/500000,((loops_per_jiffy*HZ)/5000)%100, (clockfreq / 100000) % 10,
(loops_per_jiffy*HZ)); (loops_per_jiffy * HZ) / 500000,
((loops_per_jiffy * HZ) / 5000) % 100,
(loops_per_jiffy * HZ));
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment