diff options
Diffstat (limited to 'arch/sh/lib64/udelay.c')
-rw-r--r-- | arch/sh/lib64/udelay.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/sh/lib64/udelay.c b/arch/sh/lib64/udelay.c index 327653914007..4c71a7428e60 100644 --- a/arch/sh/lib64/udelay.c +++ b/arch/sh/lib64/udelay.c | |||
@@ -13,8 +13,6 @@ | |||
13 | #include <linux/sched.h> | 13 | #include <linux/sched.h> |
14 | #include <asm/param.h> | 14 | #include <asm/param.h> |
15 | 15 | ||
16 | extern unsigned long loops_per_jiffy; | ||
17 | |||
18 | /* | 16 | /* |
19 | * Use only for very small delays (< 1 msec). | 17 | * Use only for very small delays (< 1 msec). |
20 | * | 18 | * |
@@ -49,11 +47,10 @@ void __ndelay(unsigned long long nsecs, unsigned long lpj) | |||
49 | 47 | ||
50 | void udelay(unsigned long usecs) | 48 | void udelay(unsigned long usecs) |
51 | { | 49 | { |
52 | __udelay(usecs, loops_per_jiffy); | 50 | __udelay(usecs, cpu_data[raw_smp_processor_id()].loops_per_jiffy); |
53 | } | 51 | } |
54 | 52 | ||
55 | void ndelay(unsigned long nsecs) | 53 | void ndelay(unsigned long nsecs) |
56 | { | 54 | { |
57 | __ndelay(nsecs, loops_per_jiffy); | 55 | __ndelay(nsecs, cpu_data[raw_smp_processor_id()].loops_per_jiffy); |
58 | } | 56 | } |
59 | |||