diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2012-07-26 11:02:24 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-26 16:46:16 -0700 |
commit | b585e8551b352cee95cf060b7eddc76d16e6120a (patch) | |
tree | 92f5346a503111037a5cbb80b0892b7a04fd97c6 /arch/sparc/mm/init_32.c | |
parent | 59b00c792f0302b43e098849febc52386be5fd54 (diff) | |
download | op-kernel-dev-b585e8551b352cee95cf060b7eddc76d16e6120a.zip op-kernel-dev-b585e8551b352cee95cf060b7eddc76d16e6120a.tar.gz |
sparc32: centralize all mmu context handling in srmmu.c
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/mm/init_32.c')
-rw-r--r-- | arch/sparc/mm/init_32.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/arch/sparc/mm/init_32.c b/arch/sparc/mm/init_32.c index 6d44c2b..020d2af 100644 --- a/arch/sparc/mm/init_32.c +++ b/arch/sparc/mm/init_32.c @@ -82,24 +82,6 @@ void show_mem(unsigned int filter) #endif } -void __init sparc_context_init(int numctx) -{ - int ctx; - - ctx_list_pool = __alloc_bootmem(numctx * sizeof(struct ctx_list), SMP_CACHE_BYTES, 0UL); - - for(ctx = 0; ctx < numctx; ctx++) { - struct ctx_list *clist; - - clist = (ctx_list_pool + ctx); - clist->ctx_number = ctx; - clist->ctx_mm = NULL; - } - ctx_free.next = ctx_free.prev = &ctx_free; - ctx_used.next = ctx_used.prev = &ctx_used; - for(ctx = 0; ctx < numctx; ctx++) - add_to_free_ctxlist(ctx_list_pool + ctx); -} extern unsigned long cmdline_memory_size; unsigned long last_valid_pfn; |