patch-2.1.13 linux/include/linux/wait.h

Next file: linux/include/net/inet_common.h
Previous file: linux/include/linux/swapctl.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.12/linux/include/linux/wait.h linux/include/linux/wait.h
@@ -8,6 +8,8 @@
 
 #ifdef __KERNEL__
 
+#include <asm/page.h>
+
 struct wait_queue {
 	struct task_struct * task;
 	struct wait_queue * next;
@@ -32,11 +34,11 @@
 };
 
 typedef struct select_table_struct {
-	int nr;
+	unsigned int nr;
 	struct select_table_entry * entry;
 } select_table;
 
-#define __MAX_SELECT_TABLE_ENTRIES (4096 / sizeof (struct select_table_entry))
+#define __MAX_SELECT_TABLE_ENTRIES (PAGE_SIZE / sizeof (struct select_table_entry))
 
 #endif /* __KERNEL__ */
 

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