diff options
author | Jean Delvare <jdelvare@suse.de> | 2015-04-16 21:47:41 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-17 15:04:06 +0200 |
commit | 3ea7f5e25ec271909451b7dc17be37581b888de6 (patch) | |
tree | 28bb1b161b7c59664619686cc0554efb499ca644 /kernel/fork.c | |
parent | fork: report pid reservation failure properly (diff) | |
download | linux-3ea7f5e25ec271909451b7dc17be37581b888de6.tar.xz linux-3ea7f5e25ec271909451b7dc17be37581b888de6.zip |
fork_init: update max_threads comment
The comment explaining what value max_threads is set to is outdated. The
maximum memory consumption ratio for thread structures was 1/2 until
February 2002, then it was briefly changed to 1/16 before being set to 1/8
which we still use today. The comment was never updated to reflect that
change, it's about time.
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r-- | kernel/fork.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index d778016ac1e3..c507e29bcb01 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -270,8 +270,8 @@ void __init fork_init(unsigned long mempages) /* * The default maximum number of threads is set to a safe - * value: the thread structures can take up at most half - * of memory. + * value: the thread structures can take up at most one + * eighth of the memory. */ max_threads = mempages / (8 * THREAD_SIZE / PAGE_SIZE); |