diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2012-07-26 15:02:24 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-27 03:46:16 +0400 |
commit | b585e8551b352cee95cf060b7eddc76d16e6120a (patch) | |
tree | 92f5346a503111037a5cbb80b0892b7a04fd97c6 /arch/sparc/include/asm/mmu_context_32.h | |
parent | 59b00c792f0302b43e098849febc52386be5fd54 (diff) | |
download | linux-b585e8551b352cee95cf060b7eddc76d16e6120a.tar.xz |
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.h | 8 |
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 01456c900720..2df2a9be8f6d 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. |