diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-04-13 17:13:23 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-05-25 08:13:42 -0400 |
commit | 8d011f70b08f563b007743fd446a6022f0329cd4 (patch) | |
tree | 711e18013c7383639212504121b8f6c92acc38f8 /arch/blackfin/kernel/setup.c | |
parent | 3f62bcb259e87c9e1500b701f764c1f2ccb1da98 (diff) |
Blackfin: clean up /proc/cpuinfo output
The smp flush lines are too long and have too many newlines, so scale
them back to match the other lines.
The %p modifier shows "(null)" for 0, so use %08x instead.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/kernel/setup.c')
-rw-r--r-- | arch/blackfin/kernel/setup.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/blackfin/kernel/setup.c b/arch/blackfin/kernel/setup.c index 805c6132c77..6b09f5cf631 100644 --- a/arch/blackfin/kernel/setup.c +++ b/arch/blackfin/kernel/setup.c | |||
@@ -1283,12 +1283,14 @@ static int show_cpuinfo(struct seq_file *m, void *v) | |||
1283 | dsup_banks, BFIN_DSUBBANKS, BFIN_DWAYS, | 1283 | dsup_banks, BFIN_DSUBBANKS, BFIN_DWAYS, |
1284 | BFIN_DLINES); | 1284 | BFIN_DLINES); |
1285 | #ifdef __ARCH_SYNC_CORE_DCACHE | 1285 | #ifdef __ARCH_SYNC_CORE_DCACHE |
1286 | seq_printf(m, "SMP Dcache Flushes\t: %lu\n\n", dcache_invld_count[cpu_num]); | 1286 | seq_printf(m, "dcache flushes\t: %lu\n", dcache_invld_count[cpu_num]); |
1287 | #endif | 1287 | #endif |
1288 | #ifdef __ARCH_SYNC_CORE_ICACHE | 1288 | #ifdef __ARCH_SYNC_CORE_ICACHE |
1289 | seq_printf(m, "SMP Icache Flushes\t: %lu\n\n", icache_invld_count[cpu_num]); | 1289 | seq_printf(m, "icache flushes\t: %lu\n", icache_invld_count[cpu_num]); |
1290 | #endif | 1290 | #endif |
1291 | 1291 | ||
1292 | seq_printf(m, "\n"); | ||
1293 | |||
1292 | if (cpu_num != num_possible_cpus() - 1) | 1294 | if (cpu_num != num_possible_cpus() - 1) |
1293 | return 0; | 1295 | return 0; |
1294 | 1296 | ||
@@ -1312,13 +1314,11 @@ static int show_cpuinfo(struct seq_file *m, void *v) | |||
1312 | " in data cache\n"); | 1314 | " in data cache\n"); |
1313 | } | 1315 | } |
1314 | seq_printf(m, "board name\t: %s\n", bfin_board_name); | 1316 | seq_printf(m, "board name\t: %s\n", bfin_board_name); |
1315 | seq_printf(m, "board memory\t: %ld kB (0x%p -> 0x%p)\n", | 1317 | seq_printf(m, "board memory\t: %ld kB (0x%08lx -> 0x%08lx)\n", |
1316 | physical_mem_end >> 10, (void *)0, (void *)physical_mem_end); | 1318 | physical_mem_end >> 10, 0ul, physical_mem_end); |
1317 | seq_printf(m, "kernel memory\t: %d kB (0x%p -> 0x%p)\n", | 1319 | seq_printf(m, "kernel memory\t: %d kB (0x%08lx -> 0x%08lx)\n", |
1318 | ((int)memory_end - (int)_rambase) >> 10, | 1320 | ((int)memory_end - (int)_rambase) >> 10, |
1319 | (void *)_rambase, | 1321 | _rambase, memory_end); |
1320 | (void *)memory_end); | ||
1321 | seq_printf(m, "\n"); | ||
1322 | 1322 | ||
1323 | return 0; | 1323 | return 0; |
1324 | } | 1324 | } |