sh: r7785rp: Fix up DECLARE_INTC_DESC() arg mismatch.
[linux-2.6.git] / arch / sh / lib64 / udelay.c
index 327653914007b808e1f753b12aa0598a2441aba0..23c7d17fb9f7398b842c0c9a0b2a19faa2430930 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * arch/sh64/lib/udelay.c
+ * arch/sh/lib64/udelay.c
  *
  * Delay routines, using a pre-computed "loops_per_jiffy" value.
  *
@@ -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);
 }
-