summaryrefslogtreecommitdiffstats
path: root/arch/arm/include
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@arm.com>2009-07-24 12:34:56 +0100
committerCatalin Marinas <catalin.marinas@arm.com>2009-07-24 12:34:56 +0100
commit9a45f026bb3ba720765d46f62f5c464d3317a8ab (patch)
treefbcdaa507c496ee9864bdcdef4c0d2554251716c /arch/arm/include
parent09529f7a1a010cc364267fc5895a71c3853eb82c (diff)
nommu: Remove the context.id from asm-offsets.c when !MMU
There is no MMU context switching on MMU-less systems. Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm/include')
-rw-r--r--arch/arm/include/asm/mmu_context.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/include/asm/mmu_context.h b/arch/arm/include/asm/mmu_context.h
index 263fed05ea3..bcdb9291ef0 100644
--- a/arch/arm/include/asm/mmu_context.h
+++ b/arch/arm/include/asm/mmu_context.h
@@ -62,8 +62,10 @@ static inline void check_context(struct mm_struct *mm)
static inline void check_context(struct mm_struct *mm)
{
+#ifdef CONFIG_MMU
if (unlikely(mm->context.kvm_seq != init_mm.context.kvm_seq))
__check_kvm_seq(mm);
+#endif
}
#define init_new_context(tsk,mm) 0