Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git] / include / asm-mips / bugs.h
1 /*
2  * This is included by init/main.c to check for architecture-dependent bugs.
3  *
4  * Needs:
5  *      void check_bugs(void);
6  */
7 #ifndef _ASM_BUGS_H
8 #define _ASM_BUGS_H
9
10 #include <linux/config.h>
11 #include <linux/delay.h>
12 #include <asm/cpu.h>
13 #include <asm/cpu-info.h>
14
15 extern void check_bugs32(void);
16 extern void check_bugs64(void);
17
18 static inline void check_bugs(void)
19 {
20         unsigned int cpu = smp_processor_id();
21
22         cpu_data[cpu].udelay_val = loops_per_jiffy;
23         check_bugs32();
24 #ifdef CONFIG_64BIT
25         check_bugs64();
26 #endif
27 }
28
29 #endif /* _ASM_BUGS_H */