]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: Runtime allocation of mmu context maps for nohash CPUs
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 18 Dec 2008 19:13:48 +0000 (19:13 +0000)
committerPaul Mackerras <paulus@samba.org>
Sun, 21 Dec 2008 03:21:16 +0000 (14:21 +1100)
commitc9876bcdbb032b3c185eccd418d17b143cba8e0c
tree4bb26bea674835683a2da53cd84efa782425d570
parent17f447bcac4356a13fe2980c2568833bde7f45e0
powerpc/mm: Runtime allocation of mmu context maps for nohash CPUs

This makes the MMU context code used for CPUs with no hash table
(except 603) dynamically allocate the various maps used to track
the state of contexts.

Only the main free map and CPU 0 stale map are allocated at boot
time.  Other CPU maps are allocated when those CPUs are brought up
and freed if they are unplugged.

This also moves the initialization of the MMU context management
slightly later during the boot process, which should be fine as
it's really only needed when userland if first started anyways.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/setup_32.c
arch/powerpc/mm/init_32.c
arch/powerpc/mm/mmu_context_nohash.c