From: Catalin Marinas Date: Fri, 24 Jul 2009 11:34:56 +0000 (+0100) Subject: nommu: Remove the context.id from asm-offsets.c when !MMU X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9a45f026bb3ba720765d46f62f5c464d3317a8ab;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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