patch-2.4.18 linux/include/asm-sparc64/delay.h
Next file: linux/include/asm-sparc64/elf.h
Previous file: linux/include/asm-sparc/string.h
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
Tue Feb 5 17:28:24 2002
- Orig file:
linux.orig/include/asm-sparc64/delay.h
- Orig date:
Mon Feb 18 20:18:40 2002
diff -Naur -X /home/marcelo/lib/dontdiff linux.orig/include/asm-sparc64/delay.h linux/include/asm-sparc64/delay.h
@@ -1,4 +1,4 @@
-/* $Id: delay.h,v 1.12 2001/04/24 01:09:12 davem Exp $
+/* $Id: delay.h,v 1.12.2.1 2002/02/02 02:11:52 kanoj Exp $
* delay.h: Linux delay routines on the V9.
*
* Copyright (C) 1996 David S. Miller (davem@caip.rutgers.edu).
@@ -9,9 +9,13 @@
#include <linux/config.h>
#include <linux/param.h>
+
+#ifndef __ASSEMBLY__
+
#ifdef CONFIG_SMP
-#include <linux/sched.h>
#include <asm/smp.h>
+#else
+extern unsigned long loops_per_jiffy;
#endif
extern __inline__ void __delay(unsigned long loops)
@@ -48,5 +52,7 @@
#endif
#define udelay(usecs) __udelay((usecs),__udelay_val)
+
+#endif /* !__ASSEMBLY__ */
#endif /* defined(__SPARC64_DELAY_H) */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)