aboutsummaryrefslogtreecommitdiffstats
path: root/arch/openrisc/kernel
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2015-04-15 19:39:15 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2015-04-15 19:39:15 -0400
commiteea3a00264cf243a28e4331566ce67b86059339d (patch)
tree487f16389e0dfa32e9caa7604d1274a7dcda8f04 /arch/openrisc/kernel
parente7c82412433a8039616c7314533a0a1c025d99bf (diff)
parente693d73c20ffdb06840c9378f367bad849ac0d5d (diff)
Merge branch 'akpm' (patches from Andrew)
Merge second patchbomb from Andrew Morton: - the rest of MM - various misc bits - add ability to run /sbin/reboot at reboot time - printk/vsprintf changes - fiddle with seq_printf() return value * akpm: (114 commits) parisc: remove use of seq_printf return value lru_cache: remove use of seq_printf return value tracing: remove use of seq_printf return value cgroup: remove use of seq_printf return value proc: remove use of seq_printf return value s390: remove use of seq_printf return value cris fasttimer: remove use of seq_printf return value cris: remove use of seq_printf return value openrisc: remove use of seq_printf return value ARM: plat-pxa: remove use of seq_printf return value nios2: cpuinfo: remove use of seq_printf return value microblaze: mb: remove use of seq_printf return value ipc: remove use of seq_printf return value rtc: remove use of seq_printf return value power: wakeup: remove use of seq_printf return value x86: mtrr: if: remove use of seq_printf return value linux/bitmap.h: improve BITMAP_{LAST,FIRST}_WORD_MASK MAINTAINERS: CREDITS: remove Stefano Brivio from B43 .mailmap: add Ricardo Ribalda CREDITS: add Ricardo Ribalda Delgado ...
Diffstat (limited to 'arch/openrisc/kernel')
-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)