powerpc32: Use kmem_cache memory for PGDIR
authorLEROY Christophe <christophe.leroy@c-s.fr>
Tue, 20 Jan 2015 09:57:34 +0000 (10:57 +0100)
committerScott Wood <scottwood@freescale.com>
Fri, 30 Jan 2015 03:59:02 +0000 (21:59 -0600)
commitce67f5d0a00cce231e62334c3624737623c32d6a
treec723a98f0acfe0e685727ff602f901ea70ce984e
parent5ddb75cee5afab3bdaf6eb4efefc8029923a9cc7
powerpc32: Use kmem_cache memory for PGDIR

When pages are not 4K, PGDIR table is allocated with kmalloc(). In order to
optimise TLB handlers, aligned memory is needed. kmalloc() doesn't provide
aligned memory blocks, so lets use a kmem_cache pool instead.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Scott Wood <scottwood@freescale.com>
arch/powerpc/include/asm/pgtable-ppc32.h
arch/powerpc/mm/pgtable_32.c