powerpc: Hugetlb pgtable cache access cleanup
commit7d4320f3d5ace5758111f2beac931376737f80f5
authorJon Tollefson <kniht@linux.vnet.ibm.com>
Thu, 30 Oct 2008 12:03:57 +0000 (30 12:03 +0000)
committerPaul Mackerras <paulus@samba.org>
Wed, 5 Nov 2008 22:49:39 +0000 (6 09:49 +1100)
treed03a4b940ef08669cefdb63bdddd9e2a375274a4
parentd4ad304841a9790d4fa35e51d6aa9baeba631559
powerpc: Hugetlb pgtable cache access cleanup

Andrew Morton suggested that using a macro that makes an array
reference look like a function call makes it harder to understand the
code.

This therefore removes the huge_pgtable_cache(psize) macro and
replaces its uses with pgtable_cache[HUGE_PGTABLE_INDEX(psize)].

Signed-off-by: Jon Tollefson <kniht@linux.vnet.ibm.com>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/mm/hugetlbpage.c