Skip to content

Commit 8d011f7

Browse files
committed
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>
1 parent 3f62bcb commit 8d011f7

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

‎arch/blackfin/kernel/setup.c‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,12 +1283,14 @@ static int show_cpuinfo(struct seq_file *m, void *v)
12831283
dsup_banks, BFIN_DSUBBANKS, BFIN_DWAYS,
12841284
BFIN_DLINES);
12851285
#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]);
12871287
#endif
12881288
#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]);
12901290
#endif
12911291

1292+
seq_printf(m, "\n");
1293+
12921294
if (cpu_num != num_possible_cpus() - 1)
12931295
return 0;
12941296

@@ -1312,13 +1314,11 @@ static int show_cpuinfo(struct seq_file *m, void *v)
13121314
" in data cache\n");
13131315
}
13141316
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",
1316-
physical_mem_end >> 10, (void *)0, (void *)physical_mem_end);
1317-
seq_printf(m, "kernel memory\t: %d kB (0x%p -> 0x%p)\n",
1317+
seq_printf(m, "board memory\t: %ld kB (0x%08lx -> 0x%08lx)\n",
1318+
physical_mem_end >> 10, 0ul, physical_mem_end);
1319+
seq_printf(m, "kernel memory\t: %d kB (0x%08lx -> 0x%08lx)\n",
13181320
((int)memory_end - (int)_rambase) >> 10,
1319-
(void *)_rambase,
1320-
(void *)memory_end);
1321-
seq_printf(m, "\n");
1321+
_rambase, memory_end);
13221322

13231323
return 0;
13241324
}

0 commit comments

Comments
 (0)