diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2009-07-24 07:34:56 -0400 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2009-07-24 07:34:56 -0400 |
commit | 9a45f026bb3ba720765d46f62f5c464d3317a8ab (patch) | |
tree | fbcdaa507c496ee9864bdcdef4c0d2554251716c /arch/arm/include/asm/mmu_context.h | |
parent | 09529f7a1a010cc364267fc5895a71c3853eb82c (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/asm/mmu_context.h')
-rw-r--r-- | arch/arm/include/asm/mmu_context.h | 2 |
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) | |||
62 | 62 | ||
63 | static inline void check_context(struct mm_struct *mm) | 63 | static inline void check_context(struct mm_struct *mm) |
64 | { | 64 | { |
65 | #ifdef CONFIG_MMU | ||
65 | if (unlikely(mm->context.kvm_seq != init_mm.context.kvm_seq)) | 66 | if (unlikely(mm->context.kvm_seq != init_mm.context.kvm_seq)) |
66 | __check_kvm_seq(mm); | 67 | __check_kvm_seq(mm); |
68 | #endif | ||
67 | } | 69 | } |
68 | 70 | ||
69 | #define init_new_context(tsk,mm) 0 | 71 | #define init_new_context(tsk,mm) 0 |