git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
This stack check implementation leverages the compiler's profiling (gcc -p)
[linux-2.6.git]
/
kernel
/
pid.c
diff --git
a/kernel/pid.c
b/kernel/pid.c
index
23706b2
..
1803836
100644
(file)
--- a/
kernel/pid.c
+++ b/
kernel/pid.c
@@
-275,7
+275,7
@@
void __init pidhash_init(void)
int i, j, pidhash_size;
unsigned long megabytes = max_pfn >> (20 - PAGE_SHIFT);
- pidhash_shift = max(
4
, fls(megabytes * 4));
+ pidhash_shift = max(
10
, fls(megabytes * 4));
pidhash_shift = min(12, pidhash_shift);
pidhash_size = 1 << pidhash_shift;