powerpc/mm: Reduce hashtable size when using 64kB pages
authorAnton Blanchard <anton@samba.org>
Fri, 13 Feb 2009 11:57:30 +0000 (11:57 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sun, 22 Feb 2009 23:48:58 +0000 (10:48 +1100)
commit13870b657578bcce167978ee93dc02bf54e3beb0
treec7c5ece57c707eacf465af5b954c7b4234b71d96
parent33f00dcedb0e22cdb156a23632814fc580fcfcf8
powerpc/mm: Reduce hashtable size when using 64kB pages

At the moment we size the hashtable based on 4kB pages / 2, even on a
64kB kernel. This results in a hashtable that is much larger than it
needs to be.

Grab the real page size and size the hashtable based on that

Note: This only has effect on non hypervisor machines.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/hash_utils_64.c