mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Removes PID_MAX_DEFAULT
@ 2008-06-08 17:26 Rakib Mullick
  0 siblings, 0 replies; only message in thread
From: Rakib Mullick @ 2008-06-08 17:26 UTC (permalink / raw)
  To: linux-kernel

This removes use of PID_MAX_DEFAULT. Couldn't find any specific
maintainer , so I send it here directly. [Note: I didn't use git.]

Signed-off-by: Md.Rakib Hassan Mullick (rakib.mullick@gmail.com)
---
diff -upr linux-2.6.25-vanilla/include/linux/threads.h
linux-2.6.25/include/linux/threads.h
--- linux-2.6.25-vanilla/include/linux/threads.h	2008-04-17
08:49:44.000000000 +0600
+++ linux-2.6.25/include/linux/threads.h	2008-06-07 18:46:29.000000000 +0600
@@ -22,15 +22,10 @@
 #define MIN_THREADS_LEFT_FOR_ROOT 4

 /*
- * This controls the default maximum pid allocated to a process
- */
-#define PID_MAX_DEFAULT (CONFIG_BASE_SMALL ? 0x1000 : 0x8000)
-
-/*
  * A maximum of 4 million PIDs should be enough for a while.
  * [NOTE: PID/TIDs are limited to 2^29 ~= 500+ million, see futex.h.]
  */
 #define PID_MAX_LIMIT (CONFIG_BASE_SMALL ? PAGE_SIZE * 8 : \
-	(sizeof(long) > 4 ? 4 * 1024 * 1024 : PID_MAX_DEFAULT))
+	(sizeof(long) > 4 ? 4 * 1024 * 1024 : (CONFIG_BASE_SMALL ? 0x1000 : 0x8000)))

 #endif
Only in linux-2.6.25/include/linux: threads.h~
diff -upr linux-2.6.25-vanilla/kernel/pid.c linux-2.6.25/kernel/pid.c
--- linux-2.6.25-vanilla/kernel/pid.c	2008-04-17 08:49:44.000000000 +0600
+++ linux-2.6.25/kernel/pid.c	2008-06-07 18:46:25.000000000 +0600
@@ -42,7 +42,10 @@ static struct hlist_head *pid_hash;
 static int pidhash_shift;
 struct pid init_struct_pid = INIT_STRUCT_PID;

-int pid_max = PID_MAX_DEFAULT;
+/*
+ * This controls the default maximum pid allocated to a process
+ */
+int pid_max = CONFIG_BASE_SMALL ? 0x1000 : 0x8000 ;

 #define RESERVED_PIDS		300

Only in linux-2.6.25/kernel: pid.c~

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-06-08 17:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-08 17:26 [PATCH] Removes PID_MAX_DEFAULT Rakib Mullick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®