patch-2.3.99-pre6 linux/include/asm-sh/delay.h

Next file: linux/include/asm-sh/elf.h
Previous file: linux/include/asm-sh/current.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre5/linux/include/asm-sh/delay.h linux/include/asm-sh/delay.h
@@ -5,6 +5,8 @@
  * Copyright (C) 1999  Kaz Kojima
  */
 
+#include <linux/config.h>
+
 extern __inline__ void __delay(unsigned long loops)
 {
 	__asm__ __volatile__(
@@ -28,7 +30,7 @@
 }
 
 
-#ifdef __SMP__
+#ifdef CONFIG_SMP
 #define __udelay_val cpu_data[smp_processor_id()].udelay_val
 #else
 #define __udelay_val loops_per_sec

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)