aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/openrisc/kernel/setup.c50
1 files changed, 26 insertions, 24 deletions
diff --git a/arch/openrisc/kernel/setup.c b/arch/openrisc/kernel/setup.c
index 4fc7ccc0a2cf..b4ed8b36e078 100644
--- a/arch/openrisc/kernel/setup.c
+++ b/arch/openrisc/kernel/setup.c
@@ -329,30 +329,32 @@ static int show_cpuinfo(struct seq_file *m, void *v)
329 version = (vr & SPR_VR_VER) >> 24; 329 version = (vr & SPR_VR_VER) >> 24;
330 revision = vr & SPR_VR_REV; 330 revision = vr & SPR_VR_REV;
331 331
332 return seq_printf(m, 332 seq_printf(m,
333 "cpu\t\t: OpenRISC-%x\n" 333 "cpu\t\t: OpenRISC-%x\n"
334 "revision\t: %d\n" 334 "revision\t: %d\n"
335 "frequency\t: %ld\n" 335 "frequency\t: %ld\n"
336 "dcache size\t: %d bytes\n" 336 "dcache size\t: %d bytes\n"
337 "dcache block size\t: %d bytes\n" 337 "dcache block size\t: %d bytes\n"
338 "icache size\t: %d bytes\n" 338 "icache size\t: %d bytes\n"
339 "icache block size\t: %d bytes\n" 339 "icache block size\t: %d bytes\n"
340 "immu\t\t: %d entries, %lu ways\n" 340 "immu\t\t: %d entries, %lu ways\n"
341 "dmmu\t\t: %d entries, %lu ways\n" 341 "dmmu\t\t: %d entries, %lu ways\n"
342 "bogomips\t: %lu.%02lu\n", 342 "bogomips\t: %lu.%02lu\n",
343 version, 343 version,
344 revision, 344 revision,
345 loops_per_jiffy * HZ, 345 loops_per_jiffy * HZ,
346 cpuinfo.dcache_size, 346 cpuinfo.dcache_size,
347 cpuinfo.dcache_block_size, 347 cpuinfo.dcache_block_size,
348 cpuinfo.icache_size, 348 cpuinfo.icache_size,
349 cpuinfo.icache_block_size, 349 cpuinfo.icache_block_size,
350 1 << ((mfspr(SPR_DMMUCFGR) & SPR_DMMUCFGR_NTS) >> 2), 350 1 << ((mfspr(SPR_DMMUCFGR) & SPR_DMMUCFGR_NTS) >> 2),
351 1 + (mfspr(SPR_DMMUCFGR) & SPR_DMMUCFGR_NTW), 351 1 + (mfspr(SPR_DMMUCFGR) & SPR_DMMUCFGR_NTW),
352 1 << ((mfspr(SPR_IMMUCFGR) & SPR_IMMUCFGR_NTS) >> 2), 352 1 << ((mfspr(SPR_IMMUCFGR) & SPR_IMMUCFGR_NTS) >> 2),
353 1 + (mfspr(SPR_IMMUCFGR) & SPR_IMMUCFGR_NTW), 353 1 + (mfspr(SPR_IMMUCFGR) & SPR_IMMUCFGR_NTW),
354 (loops_per_jiffy * HZ) / 500000, 354 (loops_per_jiffy * HZ) / 500000,
355 ((loops_per_jiffy * HZ) / 5000) % 100); 355 ((loops_per_jiffy * HZ) / 5000) % 100);
356
357 return 0;
356} 358}
357 359
358static void *c_start(struct seq_file *m, loff_t * pos) 360static void *c_start(struct seq_file *m, loff_t * pos)