mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-23 20:53:53 +08: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>
18 lines
378 B
C
18 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 */
|