aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/include/asm/mmu_context.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/arch/arm/include/asm/mmu_context.h b/arch/arm/include/asm/mmu_context.h
index 432ce8176498..fa5b42d44985 100644
--- a/arch/arm/include/asm/mmu_context.h
+++ b/arch/arm/include/asm/mmu_context.h
@@ -26,7 +26,12 @@ void __check_vmalloc_seq(struct mm_struct *mm);
26#ifdef CONFIG_CPU_HAS_ASID 26#ifdef CONFIG_CPU_HAS_ASID
27 27
28void check_and_switch_context(struct mm_struct *mm, struct task_struct *tsk); 28void check_and_switch_context(struct mm_struct *mm, struct task_struct *tsk);
29#define init_new_context(tsk,mm) ({ atomic64_set(&(mm)->context.id, 0); 0; }) 29static inline int
30init_new_context(struct task_struct *tsk, struct mm_struct *mm)
31{
32 atomic64_set(&mm->context.id, 0);
33 return 0;
34}
30 35
31#ifdef CONFIG_ARM_ERRATA_798181 36#ifdef CONFIG_ARM_ERRATA_798181
32void a15_erratum_get_cpumask(int this_cpu, struct mm_struct *mm, 37void a15_erratum_get_cpumask(int this_cpu, struct mm_struct *mm,
@@ -85,7 +90,12 @@ static inline void finish_arch_post_lock_switch(void)
85 90
86#endif /* CONFIG_MMU */ 91#endif /* CONFIG_MMU */
87 92
88#define init_new_context(tsk,mm) 0 93static inline int
94init_new_context(struct task_struct *tsk, struct mm_struct *mm)
95{
96 return 0;
97}
98
89 99
90#endif /* CONFIG_CPU_HAS_ASID */ 100#endif /* CONFIG_CPU_HAS_ASID */
91 101