patch-2.3.99-pre6 linux/include/linux/threads.h

Next file: linux/include/linux/timer.h
Previous file: linux/include/linux/sysctl.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre5/linux/include/linux/threads.h linux/include/linux/threads.h
@@ -1,12 +1,14 @@
 #ifndef _LINUX_THREADS_H
 #define _LINUX_THREADS_H
 
+#include <linux/config.h>
+
 /*
  * The default limit for the nr of threads is now in
  * /proc/sys/kernel/max-threads.
  */
  
-#ifdef __SMP__
+#ifdef CONFIG_SMP
 #define NR_CPUS	32		/* Max processors that can be running in SMP */
 #else
 #define NR_CPUS 1

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