diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2008-12-18 20:13:48 +0100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-12-21 04:21:16 +0100 |
commit | 77520351805cc19ba37394ae33f862ef6d3c2a23 (patch) | |
tree | 4bb26bea674835683a2da53cd84efa782425d570 /arch/powerpc/kernel/setup_32.c | |
parent | powerpc/44x: No need to mask MSR:CE, ME or DE in _tlbil_va on 440 (diff) | |
download | linux-77520351805cc19ba37394ae33f862ef6d3c2a23.tar.xz linux-77520351805cc19ba37394ae33f862ef6d3c2a23.zip |
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>
Diffstat (limited to 'arch/powerpc/kernel/setup_32.c')
-rw-r--r-- | arch/powerpc/kernel/setup_32.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/setup_32.c b/arch/powerpc/kernel/setup_32.c index b14c2a3e2185..d72ef39f2b37 100644 --- a/arch/powerpc/kernel/setup_32.c +++ b/arch/powerpc/kernel/setup_32.c @@ -38,6 +38,7 @@ #include <asm/time.h> #include <asm/serial.h> #include <asm/udbg.h> +#include <asm/mmu_context.h> #include "setup.h" @@ -330,4 +331,8 @@ void __init setup_arch(char **cmdline_p) if ( ppc_md.progress ) ppc_md.progress("arch: exit", 0x3eab); paging_init(); + + /* Initialize the MMU context management stuff */ + mmu_context_init(); + } |