patch-2.3.99-pre6 linux/fs/proc/base.c
Next file: linux/fs/proc/proc_misc.c
Previous file: linux/fs/proc/array.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Fri Apr 21 16:08:45 2000
- Orig file:
v2.3.99-pre5/linux/fs/proc/base.c
- Orig date:
Tue Apr 11 15:09:23 2000
diff -u --recursive --new-file v2.3.99-pre5/linux/fs/proc/base.c linux/fs/proc/base.c
@@ -15,6 +15,7 @@
#include <asm/uaccess.h>
+#include <linux/config.h>
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/proc_fs.h>
@@ -474,7 +475,7 @@
E(PROC_PID_CMDLINE, "cmdline", S_IFREG|S_IRUGO),
E(PROC_PID_STAT, "stat", S_IFREG|S_IRUGO),
E(PROC_PID_STATM, "statm", S_IFREG|S_IRUGO),
-#ifdef __SMP__
+#ifdef CONFIG_SMP
E(PROC_PID_CPU, "cpu", S_IFREG|S_IRUGO),
#endif
E(PROC_PID_MAPS, "maps", S_IFREG|S_IRUGO),
@@ -800,7 +801,7 @@
case PROC_PID_MAPS:
inode->i_fop = &proc_maps_operations;
break;
-#ifdef __SMP__
+#ifdef CONFIG_SMP
case PROC_PID_CPU:
inode->i_fop = &proc_info_file_operations;
inode->u.proc_i.op.proc_read = proc_pid_cpu;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)