Skip to content

Commit 9ac87c5

Browse files
wildea01Russell King
authored andcommitted
ARM: 8407/1: switch_to: Remove finish_arch_switch
Fold finish_arch_switch() into switch_to(), in preparation for the removal of the finish_arch_switch call from core sched code. Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent 787047e commit 9ac87c5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

arch/arm/include/asm/switch_to.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
* CPU.
1111
*/
1212
#if defined(CONFIG_PREEMPT) && defined(CONFIG_SMP) && defined(CONFIG_CPU_V7)
13-
#define finish_arch_switch(prev) dsb(ish)
13+
#define __complete_pending_tlbi() dsb(ish)
14+
#else
15+
#define __complete_pending_tlbi()
1416
#endif
1517

1618
/*
@@ -22,6 +24,7 @@ extern struct task_struct *__switch_to(struct task_struct *, struct thread_info
2224

2325
#define switch_to(prev,next,last) \
2426
do { \
27+
__complete_pending_tlbi(); \
2528
last = __switch_to(prev,task_thread_info(prev), task_thread_info(next)); \
2629
} while (0)
2730

0 commit comments

Comments
 (0)