summaryrefslogtreecommitdiffstats
path: root/arch/sparc/include/asm/mmu_context_32.h
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2012-07-26 11:02:24 +0000
committerDavid S. Miller <davem@davemloft.net>2012-07-26 16:46:16 -0700
commitb585e8551b352cee95cf060b7eddc76d16e6120a (patch)
tree92f5346a503111037a5cbb80b0892b7a04fd97c6 /arch/sparc/include/asm/mmu_context_32.h
parent59b00c792f0302b43e098849febc52386be5fd54 (diff)
downloadop-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/include/asm/mmu_context_32.h')
-rw-r--r--arch/sparc/include/asm/mmu_context_32.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/sparc/include/asm/mmu_context_32.h b/arch/sparc/include/asm/mmu_context_32.h
index 01456c9..2df2a9b 100644
--- a/arch/sparc/include/asm/mmu_context_32.h
+++ b/arch/sparc/include/asm/mmu_context_32.h
@@ -9,14 +9,12 @@ static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk)
{
}
-/*
- * Initialize a new mmu context. This is invoked when a new
+/* Initialize a new mmu context. This is invoked when a new
* address space instance (unique or shared) is instantiated.
*/
-#define init_new_context(tsk, mm) (((mm)->context = NO_CONTEXT), 0)
+int init_new_context(struct task_struct *tsk, struct mm_struct *mm);
-/*
- * Destroy a dead context. This occurs when mmput drops the
+/* Destroy a dead context. This occurs when mmput drops the
* mm_users count to zero, the mmaps have been released, and
* all the page tables have been flushed. Our job is to destroy
* any remaining processor-specific state.
OpenPOWER on IntegriCloud