patch-2.1.23 linux/include/linux/sched.h

Next file: linux/include/linux/skbuff.h
Previous file: linux/include/linux/proc_fs.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.22/linux/include/linux/sched.h linux/include/linux/sched.h
@@ -154,7 +154,7 @@
 #define INIT_MM { \
 		1, \
 		swapper_pg_dir, \
-		0, \
+		-1, \
 		0, 0, 0, 0, \
 		0, 0, 0, 0, \
 		0, 0, 0, 0, \
@@ -167,6 +167,7 @@
 	struct sigaction action[32];
 };
 
+
 #define INIT_SIGNALS { \
 		1, \
 		{ {0,}, } }
@@ -245,11 +246,10 @@
 	struct mm_struct *mm;
 /* signal handlers */
 	struct signal_struct *sig;
-#ifdef __SMP__
+/* SMP state */
 	int processor;
 	int last_processor;
 	int lock_depth;		/* Lock depth. We can context switch in and out of holding a syscall kernel lock... */	
-#endif	
 };
 
 /*
@@ -311,6 +311,7 @@
 /* files */	&init_files, \
 /* mm */	&init_mm, \
 /* signals */	&init_signals, \
+/* SMP */	0,0,0, \
 }
 
 extern struct   mm_struct init_mm;
@@ -376,12 +377,10 @@
 extern void exit_fs(struct task_struct *);
 extern void exit_files(struct task_struct *);
 extern void exit_sighand(struct task_struct *);
-extern void release_thread(struct task_struct *);
 
 extern int do_execve(char *, char **, char **, struct pt_regs *);
 extern int do_fork(unsigned long, unsigned long, struct pt_regs *);
 
-
 /* See if we have a valid user level fd.
  * If it makes sense, return the file structure it references.
  * Otherwise return NULL.
@@ -445,13 +444,13 @@
 	restore_flags(flags);
 }
 
-extern inline void select_wait(struct wait_queue ** wait_address, select_table * p)
+extern inline void poll_wait(struct wait_queue ** wait_address, poll_table * p)
 {
-	struct select_table_entry * entry;
+	struct poll_table_entry * entry;
 
 	if (!p || !wait_address)
 		return;
-	if (p->nr >= __MAX_SELECT_TABLE_ENTRIES)
+	if (p->nr >= __MAX_POLL_TABLE_ENTRIES)
 		return;
  	entry = p->entry + p->nr;
 	entry->wait_address = wait_address;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov