summaryrefslogtreecommitdiffstats
path: root/arch/arm/include
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@arm.com>2009-07-24 13:34:56 +0200
committerCatalin Marinas <catalin.marinas@arm.com>2009-07-24 13:34:56 +0200
commit9a45f026bb3ba720765d46f62f5c464d3317a8ab (patch)
treefbcdaa507c496ee9864bdcdef4c0d2554251716c /arch/arm/include
parentnommu: Fix the fault processing for the MMU-less case (diff)
downloadlinux-9a45f026bb3ba720765d46f62f5c464d3317a8ab.tar.xz
linux-9a45f026bb3ba720765d46f62f5c464d3317a8ab.zip
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 263fed05ea33..bcdb9291ef0c 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