Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

microblaze: cpuinfo shows cache line length

Show cache line length in /proc/cpuinfo.

Signed-off-by: Michal Simek <monstr@monstr.eu>

+6 -4
+6 -4
arch/microblaze/kernel/cpu/mb.c
··· 98 98 99 99 if (cpuinfo.use_icache) 100 100 count += seq_printf(m, 101 - "Icache:\t\t%ukB\n", 102 - cpuinfo.icache_size >> 10); 101 + "Icache:\t\t%ukB\tline length:\t%dB\n", 102 + cpuinfo.icache_size >> 10, 103 + cpuinfo.icache_line_length); 103 104 else 104 105 count += seq_printf(m, "Icache:\t\tno\n"); 105 106 106 107 if (cpuinfo.use_dcache) { 107 108 count += seq_printf(m, 108 - "Dcache:\t\t%ukB\n", 109 - cpuinfo.dcache_size >> 10); 109 + "Dcache:\t\t%ukB\tline length:\t%dB\n", 110 + cpuinfo.dcache_size >> 10, 111 + cpuinfo.dcache_line_length); 110 112 if (cpuinfo.dcache_wb) 111 113 count += seq_printf(m, "\t\twrite-back\n"); 112 114 else