This stack check implementation leverages the compiler's profiling (gcc -p)
[linux-2.6.git] / kernel / pid.c
index 23706b2..1803836 100644 (file)
@@ -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;