mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-27 03:30:53 +07:00
6defa38b37
My earlier merge of delay.h introduced a timebase-based udelay for 32-bit machines but also broke the 601, which doesn't have the timebase register. This fixes it by using the 601's RTC register on the 601, and also moves __delay() and udelay() to be out-of-line in arch/powerpc/kernel/time.c. These functions aren't really performance critical, after all. Signed-off-by: Paul Mackerras <paulus@samba.org>
20 lines
571 B
C
20 lines
571 B
C
#ifndef _ASM_POWERPC_DELAY_H
|
|
#define _ASM_POWERPC_DELAY_H
|
|
|
|
/*
|
|
* Copyright 1996, Paul Mackerras.
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version
|
|
* 2 of the License, or (at your option) any later version.
|
|
*
|
|
* PPC64 Support added by Dave Engebretsen, Todd Inglett, Mike Corrigan,
|
|
* Anton Blanchard.
|
|
*/
|
|
|
|
extern void __delay(unsigned long loops);
|
|
extern void udelay(unsigned long usecs);
|
|
|
|
#endif /* _ASM_POWERPC_DELAY_H */
|