diff options
| author | Jeff Garzik <jgarzik@pobox.com> | 2005-10-29 17:49:12 -0400 |
|---|---|---|
| committer | Jeff Garzik <jgarzik@pobox.com> | 2005-10-29 17:49:12 -0400 |
| commit | b0c4e148bd591629749d02a8fbc8d81c26d548cf (patch) | |
| tree | 3e2142635f3dc2ceeae870ead2dceab7b9c6def1 /include/asm-mips/bugs.h | |
| parent | 5615ca7906aefbdc3318604c89db5931d0a25910 (diff) | |
| parent | be15cd72d256e5eb3261a781b8507fac83ab33f6 (diff) | |
Merge branch 'master'
Diffstat (limited to 'include/asm-mips/bugs.h')
| -rw-r--r-- | include/asm-mips/bugs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asm-mips/bugs.h b/include/asm-mips/bugs.h index b14b961c2100..cb2ea7c15c7a 100644 --- a/include/asm-mips/bugs.h +++ b/include/asm-mips/bugs.h | |||
| @@ -8,12 +8,18 @@ | |||
| 8 | #define _ASM_BUGS_H | 8 | #define _ASM_BUGS_H |
| 9 | 9 | ||
| 10 | #include <linux/config.h> | 10 | #include <linux/config.h> |
| 11 | #include <linux/delay.h> | ||
| 12 | #include <asm/cpu.h> | ||
| 13 | #include <asm/cpu-info.h> | ||
| 11 | 14 | ||
| 12 | extern void check_bugs32(void); | 15 | extern void check_bugs32(void); |
| 13 | extern void check_bugs64(void); | 16 | extern void check_bugs64(void); |
| 14 | 17 | ||
| 15 | static inline void check_bugs(void) | 18 | static inline void check_bugs(void) |
| 16 | { | 19 | { |
| 20 | unsigned int cpu = smp_processor_id(); | ||
| 21 | |||
| 22 | cpu_data[cpu].udelay_val = loops_per_jiffy; | ||
| 17 | check_bugs32(); | 23 | check_bugs32(); |
| 18 | #ifdef CONFIG_64BIT | 24 | #ifdef CONFIG_64BIT |
| 19 | check_bugs64(); | 25 | check_bugs64(); |
