sh: Tidy up lib64 udelay impl.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
Paul Mundt
2007-11-20 14:49:36 +09:00
parent 600ee240d1
commit 99432700cf
2 changed files with 8 additions and 7 deletions

View File

@@ -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);
}