Selaa lähdekoodia

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>
Catalin Marinas 16 vuotta sitten
vanhempi
commit
9a45f026bb
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      arch/arm/include/asm/mmu_context.h

+ 2 - 0
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