patch-2.3.23 linux/include/asm-sh/bugs.h

Next file: linux/include/asm-sh/byteorder.h
Previous file: linux/include/asm-sh/bitops.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.22/linux/include/asm-sh/bugs.h linux/include/asm-sh/bugs.h
@@ -16,5 +16,23 @@
 
 static void __init check_bugs(void)
 {
+	extern unsigned long loops_per_sec;
+
+	cpu_data->loops_per_sec = loops_per_sec;
+	
+	switch (cpu_data->type) {
+	case CPU_SH7708:
+		printk("CPU: SH7708/SH7709\n");
+		break;
+	case CPU_SH7729:
+		printk("CPU: SH7709A/SH7729\n");
+		break;
+	case CPU_SH7750:
+		printk("CPU: SH7750\n");
+		break;
+	default:
+		printk("CPU: ??????\n");
+		break;
+	}
 }
 #endif /* __ASM_SH_BUGS_H */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)