patch-2.3.99-pre6 linux/include/asm-ppc/timex.h

Next file: linux/include/asm-sh/atomic.h
Previous file: linux/include/asm-ppc/system.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre5/linux/include/asm-ppc/timex.h linux/include/asm-ppc/timex.h
@@ -6,6 +6,8 @@
 #ifndef _ASMppc_TIMEX_H
 #define _ASMppc_TIMEX_H
 
+#include <linux/config.h>
+
 #define CLOCK_TICK_RATE	1193180 /* Underlying HZ */
 #define CLOCK_TICK_FACTOR	20	/* Factor of both 1000000 and CLOCK_TICK_RATE */
 #define FINETUNE ((((((long)LATCH * HZ - CLOCK_TICK_RATE) << SHIFT_HZ) * \
@@ -26,7 +28,7 @@
 
 static inline cycles_t get_cycles(void)
 {
-#ifdef __SMP__
+#ifdef CONFIG_SMP
 	cycles_t ret;
 
 	__asm__("mftb %0" : "=r" (ret) : );

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