patch-2.3.99-pre6 linux/fs/proc/array.c

Next file: linux/fs/proc/base.c
Previous file: linux/fs/pipe.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre5/linux/fs/proc/array.c linux/fs/proc/array.c
@@ -52,6 +52,7 @@
  *			 :  base.c too.
  */
 
+#include <linux/config.h>
 #include <linux/types.h>
 #include <linux/errno.h>
 #include <linux/sched.h>
@@ -269,6 +270,9 @@
 {
 	char * orig = buffer;
 	struct mm_struct *mm = task->mm;
+#if defined(CONFIG_ARCH_S390)
+	int line,len;
+#endif
 
 	buffer = task_name(task, buffer);
 	buffer = task_state(task, buffer);
@@ -276,6 +280,10 @@
 		buffer = task_mem(mm, buffer);
 	buffer = task_sig(task, buffer);
 	buffer = task_cap(task, buffer);
+#if defined(CONFIG_ARCH_S390)
+	for(line=0;(len=sprintf_regs(line,buffer,task,NULL,NULL))!=0;line++)
+		buffer+=len;
+#endif
 	return buffer - orig;
 }
 
@@ -637,7 +645,7 @@
 	return retval;
 }
 
-#ifdef __SMP__
+#ifdef CONFIG_SMP
 int proc_pid_cpu(struct task_struct *task, char * buffer)
 {
 	int i, len;

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