mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-31 00:17:44 +00:00
8b99cfb8cc
Take a page from the powerpc folks and just calculate the delay factor directly. Since frequency scaling chips use a system-tick register, the value is going to be the same system-wide. Signed-off-by: David S. Miller <davem@davemloft.net>
17 lines
378 B
C
17 lines
378 B
C
/* delay.h: Linux delay routines on sparc64.
|
|
*
|
|
* Copyright (C) 1996, 2004, 2007 David S. Miller (davem@davemloft.net).
|
|
*/
|
|
|
|
#ifndef _SPARC64_DELAY_H
|
|
#define _SPARC64_DELAY_H
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
extern void __delay(unsigned long loops);
|
|
extern void udelay(unsigned long usecs);
|
|
#define mdelay(n) udelay((n) * 1000)
|
|
|
|
#endif /* !__ASSEMBLY__ */
|
|
|
|
#endif /* _SPARC64_DELAY_H */
|