Update of /cvsroot/linux-mips/linux/include/asm-mips
In directory usw-pr-cvs1:/tmp/cvs-serv10000/include/asm-mips
Modified Files:
bugs.h
Log Message:
Move check_bugs() and co. away from a headerfile.
Index: bugs.h
===================================================================
RCS file: /cvsroot/linux-mips/linux/include/asm-mips/bugs.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- bugs.h 2001/10/26 22:36:04 1.5
+++ bugs.h 2001/10/29 17:42:46 1.6
@@ -1,57 +1,12 @@
/*
- * Copyright (C) 1995 Waldorf Electronics
- * Copyright (C) 1997, 1999 Ralf Baechle
- */
-#include <asm/bootinfo.h>
-#include <asm/processor.h>
-#include <asm/cpu.h>
-
-/*
* This is included by init/main.c to check for architecture-dependent bugs.
*
* Needs:
* void check_bugs(void);
*/
-
+#ifndef __ASM_BUGS_H
+#define __ASM_BUGS_H
-static inline void check_wait(void)
-{
- printk("Checking for 'wait' instruction... ");
- switch(mips_cpu.cputype) {
- case CPU_R3081:
- case CPU_R3081E:
- cpu_wait = r3081_wait;
- printk(" available.\n");
- break;
- case CPU_TX3927:
- case CPU_TX39XX:
- cpu_wait = r39xx_wait;
- printk(" available.\n");
- break;
- case CPU_R4200:
-/* case CPU_R4300: */
- case CPU_R4600:
- case CPU_R4640:
- case CPU_R4650:
- case CPU_R4700:
- case CPU_R5000:
- case CPU_NEVADA:
-#ifndef CONFIG_MIPS_EV96100
- /* ev96100 freezes when using the wait instruction */
- case CPU_RM7000:
-#endif
- case CPU_TX49XX:
- cpu_wait = r4k_wait;
- printk(" available.\n");
- break;
- default:
- printk(" unavailable.\n");
- break;
- }
-}
+extern void check_bugs(void);
-static void __init
-check_bugs(void)
-{
- check_wait();
-}
+#endif /* __ASM_BUGS_H */
|