diff options
Diffstat (limited to 'arch/sh/kernel/setup.c')
| -rw-r--r-- | arch/sh/kernel/setup.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/sh/kernel/setup.c b/arch/sh/kernel/setup.c index bca2bbc575db..6339d0c95715 100644 --- a/arch/sh/kernel/setup.c +++ b/arch/sh/kernel/setup.c | |||
| @@ -398,6 +398,7 @@ const char *get_cpu_subtype(struct sh_cpuinfo *c) | |||
| 398 | { | 398 | { |
| 399 | return cpu_name[c->type]; | 399 | return cpu_name[c->type]; |
| 400 | } | 400 | } |
| 401 | EXPORT_SYMBOL(get_cpu_subtype); | ||
| 401 | 402 | ||
| 402 | #ifdef CONFIG_PROC_FS | 403 | #ifdef CONFIG_PROC_FS |
| 403 | /* Symbolic CPU flags, keep in sync with asm/cpu-features.h */ | 404 | /* Symbolic CPU flags, keep in sync with asm/cpu-features.h */ |
| @@ -452,6 +453,12 @@ static int show_cpuinfo(struct seq_file *m, void *v) | |||
| 452 | seq_printf(m, "processor\t: %d\n", cpu); | 453 | seq_printf(m, "processor\t: %d\n", cpu); |
| 453 | seq_printf(m, "cpu family\t: %s\n", init_utsname()->machine); | 454 | seq_printf(m, "cpu family\t: %s\n", init_utsname()->machine); |
| 454 | seq_printf(m, "cpu type\t: %s\n", get_cpu_subtype(c)); | 455 | seq_printf(m, "cpu type\t: %s\n", get_cpu_subtype(c)); |
| 456 | if (c->cut_major == -1) | ||
| 457 | seq_printf(m, "cut\t\t: unknown\n"); | ||
| 458 | else if (c->cut_minor == -1) | ||
| 459 | seq_printf(m, "cut\t\t: %d.x\n", c->cut_major); | ||
| 460 | else | ||
| 461 | seq_printf(m, "cut\t\t: %d.%d\n", c->cut_major, c->cut_minor); | ||
| 455 | 462 | ||
| 456 | show_cpuflags(m, c); | 463 | show_cpuflags(m, c); |
| 457 | 464 | ||
