Commit 6c5c8e55 authored by Milton D. Miller II's avatar Milton D. Miller II Committed by Linus Torvalds

[PATCH] ppc64: Minimum hashtable size

We werent enforcing the minimum hardware MMU hashtable size.
Signed-off-by: default avatarMilton Miller <miltonm@bga.com>
Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent cd7acce7
...@@ -1055,7 +1055,7 @@ void __init early_init_devtree(void *params) ...@@ -1055,7 +1055,7 @@ void __init early_init_devtree(void *params)
rnd_mem_size <<= 1; rnd_mem_size <<= 1;
/* # pages / 2 */ /* # pages / 2 */
pteg_count = (rnd_mem_size >> (12 + 1)); pteg_count = max(rnd_mem_size >> (12 + 1), 1UL << 11);
ppc64_pft_size = __ilog2(pteg_count << 7); ppc64_pft_size = __ilog2(pteg_count << 7);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment