[PATCH] ppc64: Minimum hashtable size
Anton Blanchard
anton at samba.org
Wed Jan 19 15:12:30 EST 2005
From: Milton Miller <miltonm at bga.com>
We werent enforcing the minimum hardware MMU hashtable size.
Signed-off-by: Milton Miller <miltonm at bga.com>
Signed-off-by: Anton Blanchard <anton at samba.org>
diff -puN arch/ppc64/kernel/prom.c~minimum_hashtable_size arch/ppc64/kernel/prom.c
--- foobar2/arch/ppc64/kernel/prom.c~minimum_hashtable_size 2005-01-19 15:06:47.729610075 +1100
+++ foobar2-anton/arch/ppc64/kernel/prom.c 2005-01-19 15:07:06.577082744 +1100
@@ -1055,7 +1055,7 @@ void __init early_init_devtree(void *par
rnd_mem_size <<= 1;
/* # 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);
}
_
More information about the Linuxppc64-dev
mailing list