diff options
Diffstat (limited to 'include/asm-mips/delay.h')
-rw-r--r-- | include/asm-mips/delay.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/include/asm-mips/delay.h b/include/asm-mips/delay.h index a606dbee0412..85435a8d4e52 100644 --- a/include/asm-mips/delay.h +++ b/include/asm-mips/delay.h | |||
@@ -12,11 +12,9 @@ | |||
12 | 12 | ||
13 | #include <linux/config.h> | 13 | #include <linux/config.h> |
14 | #include <linux/param.h> | 14 | #include <linux/param.h> |
15 | 15 | #include <linux/smp.h> | |
16 | #include <asm/compiler.h> | 16 | #include <asm/compiler.h> |
17 | 17 | ||
18 | extern unsigned long loops_per_jiffy; | ||
19 | |||
20 | static inline void __delay(unsigned long loops) | 18 | static inline void __delay(unsigned long loops) |
21 | { | 19 | { |
22 | if (sizeof(long) == 4) | 20 | if (sizeof(long) == 4) |
@@ -82,11 +80,7 @@ static inline void __udelay(unsigned long usecs, unsigned long lpj) | |||
82 | __delay(usecs); | 80 | __delay(usecs); |
83 | } | 81 | } |
84 | 82 | ||
85 | #ifdef CONFIG_SMP | ||
86 | #define __udelay_val cpu_data[smp_processor_id()].udelay_val | 83 | #define __udelay_val cpu_data[smp_processor_id()].udelay_val |
87 | #else | ||
88 | #define __udelay_val loops_per_jiffy | ||
89 | #endif | ||
90 | 84 | ||
91 | #define udelay(usecs) __udelay((usecs),__udelay_val) | 85 | #define udelay(usecs) __udelay((usecs),__udelay_val) |
92 | 86 | ||