aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2008-12-05 22:08:22 -0500
committerDavid S. Miller <davem@davemloft.net>2008-12-05 22:08:22 -0500
commit6c6bd8b61d0c8ead18caaafb3490552565efbb64 (patch)
tree508586a66bee67011c2e5302f01ec753870856cb
parent8a563f016049bcdc9b0de0c8622afcf04b860e5e (diff)
sparc: report "Unknown CPU/FPU" for unknown cpu/fpu
If we cannot determine the CPU or FPU report "Unknown CPU" or "Unknown FPU" like sparc64 does. And report with KERN_ERR that we cannot determine the CPU. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--arch/sparc/kernel/cpu_32.c9
-rw-r--r--arch/sparc/kernel/setup_32.c4
2 files changed, 8 insertions, 5 deletions
diff --git a/arch/sparc/kernel/cpu_32.c b/arch/sparc/kernel/cpu_32.c
index d0fe5d249206..cdaf7630df81 100644
--- a/arch/sparc/kernel/cpu_32.c
+++ b/arch/sparc/kernel/cpu_32.c
@@ -152,8 +152,11 @@ void __cpuinit cpu_probe(void)
152 } 152 }
153 153
154 if (i == NSPARCCHIPS) 154 if (i == NSPARCCHIPS)
155 printk(KERN_DEBUG "psr.impl = 0x%x psr.vers = 0x%x\n", 155 {
156 printk(KERN_ERR "CPU: Unknown chip, impl[0x%x] vers[0x%x]\n",
156 psr_impl, psr_vers); 157 psr_impl, psr_vers);
158 sparc_cpu_type = "Unknown CPU";
159 }
157 160
158 for (i = 0; i < NSPARCFPU; i++) { 161 for (i = 0; i < NSPARCFPU; i++) {
159 if (linux_sparc_fpu[i].psr_impl == psr_impl) 162 if (linux_sparc_fpu[i].psr_impl == psr_impl)
@@ -164,8 +167,8 @@ void __cpuinit cpu_probe(void)
164 } 167 }
165 168
166 if (i == NSPARCFPU) { 169 if (i == NSPARCFPU) {
167 printk(KERN_DEBUG "psr.impl = 0x%x fsr.vers = 0x%x\n", 170 printk(KERN_ERR "FPU: Unknown chip, impl[0x%x] vers[0x%x]\n",
168 psr_impl, fpu_vers); 171 psr_impl, fpu_vers);
169 sparc_fpu_type = linux_sparc_fpu[31].fp_name; 172 sparc_fpu_type = "Unknown FPU";
170 } 173 }
171} 174}
diff --git a/arch/sparc/kernel/setup_32.c b/arch/sparc/kernel/setup_32.c
index 24fe3078bd4b..d21abbe26360 100644
--- a/arch/sparc/kernel/setup_32.c
+++ b/arch/sparc/kernel/setup_32.c
@@ -328,8 +328,8 @@ static int show_cpuinfo(struct seq_file *m, void *__unused)
328 "CPU0ClkTck\t: %ld\n" 328 "CPU0ClkTck\t: %ld\n"
329#endif 329#endif
330 , 330 ,
331 sparc_cpu_type ? sparc_cpu_type : "undetermined", 331 sparc_cpu_type,
332 sparc_fpu_type ? sparc_fpu_type : "undetermined", 332 sparc_fpu_type ,
333 romvec->pv_romvers, 333 romvec->pv_romvers,
334 prom_rev, 334 prom_rev,
335 romvec->pv_printrev >> 16, 335 romvec->pv_printrev >> 16,