diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-11-20 06:49:36 +0100 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-01-28 05:18:49 +0100 |
commit | 99432700cf2f28976191ab546deffc0007ef4eb7 (patch) | |
tree | f472c1aebbf3215f6c69c0c110816fea835bae7d /arch/sh/lib64 | |
parent | sh: Move over and enable FPU support for SH-5. (diff) | |
download | linux-99432700cf2f28976191ab546deffc0007ef4eb7.tar.xz linux-99432700cf2f28976191ab546deffc0007ef4eb7.zip |
sh: Tidy up lib64 udelay impl.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/lib64')
-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 @@ #include <linux/sched.h> #include <asm/param.h> -extern unsigned long loops_per_jiffy; - /* * Use only for very small delays (< 1 msec). * @@ -49,11 +47,10 @@ void __ndelay(unsigned long long nsecs, unsigned long lpj) void udelay(unsigned long usecs) { - __udelay(usecs, loops_per_jiffy); + __udelay(usecs, cpu_data[raw_smp_processor_id()].loops_per_jiffy); } void ndelay(unsigned long nsecs) { - __ndelay(nsecs, loops_per_jiffy); + __ndelay(nsecs, cpu_data[raw_smp_processor_id()].loops_per_jiffy); } - |