Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1195442

[RFC][PATCH 1/7] arm: Remove finish_arch_switch

From Peter Zijlstra <peterz@infradead.org>
Newsgroups linux.kernel
Subject [RFC][PATCH 1/7] arm: Remove finish_arch_switch
Date 2015-07-29 21:30 +0200
Message-ID <pRFd7-AH-5@gated-at.bofh.it> (permalink)
References <pRFd7-AH-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Will Deacon <will.deacon@arm.com>

Fold finish_arch_switch() into switch_to().

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
---
 arch/arm/include/asm/switch_to.h |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

--- a/arch/arm/include/asm/switch_to.h
+++ b/arch/arm/include/asm/switch_to.h
@@ -10,7 +10,9 @@
  * CPU.
  */
 #if defined(CONFIG_PREEMPT) && defined(CONFIG_SMP) && defined(CONFIG_CPU_V7)
-#define finish_arch_switch(prev)	dsb(ish)
+#define __complete_pending_tlbi()	dsb(ish)
+#else
+#define __complete_pending_tlbi()
 #endif
 
 /*
@@ -22,6 +24,7 @@ extern struct task_struct *__switch_to(s
 
 #define switch_to(prev,next,last)					\
 do {									\
+	__complete_pending_tlbi();					\
 	last = __switch_to(prev,task_thread_info(prev), task_thread_info(next));	\
 } while (0)
 


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[RFC][PATCH 1/7] arm: Remove finish_arch_switch Peter Zijlstra <peterz@infradead.org> - 2015-07-29 21:30 +0200
  Re: [RFC][PATCH 1/7] arm: Remove finish_arch_switch Ingo Molnar <mingo@kernel.org> - 2015-08-04 09:50 +0200
    Re: [RFC][PATCH 1/7] arm: Remove finish_arch_switch Russell King - ARM Linux <linux@arm.linux.org.uk> - 2015-08-04 10:30 +0200
      Re: [RFC][PATCH 1/7] arm: Remove finish_arch_switch Will Deacon <will.deacon@arm.com> - 2015-08-04 10:40 +0200

csiph-web