[PATCH 2/5] RT - fix reschedule IPI

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <mingo@...>, <linux-rt-users@...>, <rostedt@...>
Cc: <kravetz@...>, <linux-kernel@...>, <ghaskins@...>, <pmorreale@...>, <sdietrich@...>
Date: Tuesday, October 9, 2007 - 10:25 am

From: Mike Kravetz <kravetz@us.ibm.com>

x86_64 based RESCHED_IPIs fail to set the reschedule flag

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Gregory Haskins <ghaskins@novell.com>
---

 arch/x86_64/kernel/smp.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/x86_64/kernel/smp.c b/arch/x86_64/kernel/smp.c
index a5bf746..3ce6cad 100644
--- a/arch/x86_64/kernel/smp.c
+++ b/arch/x86_64/kernel/smp.c
@@ -505,13 +505,13 @@ void smp_send_stop(void)
 }
 
 /*
- * Reschedule call back. Nothing to do,
- * all the work is done automatically when
- * we return from the interrupt.
+ * Reschedule call back. Trigger a reschedule pass so that
+ * RT-overload balancing can pass tasks around.
  */
 asmlinkage void smp_reschedule_interrupt(void)
 {
 	ack_APIC_irq();
+	set_tsk_need_resched(current);
 }
 
 asmlinkage void smp_call_function_interrupt(void)

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/5] RT: scheduler fixes and rt_overload enhancements, Gregory Haskins, (Tue Oct 9, 10:25 am)
Re: [RFC PATCH RT] push waiting rt tasks to cpus with lower ..., Girish kathalagiri, (Tue Oct 9, 10:12 pm)
[PATCH 4/5] RT: Add a per-cpu rt_overload indication, Gregory Haskins, (Tue Oct 9, 10:26 am)
[PATCH 3/5] RT - fix mistargeted RESCHED_IPI, Gregory Haskins, (Tue Oct 9, 10:25 am)
[PATCH 2/5] RT - fix reschedule IPI, Gregory Haskins, (Tue Oct 9, 10:25 am)
[PATCH 1/5] RT - fix for scheduling issue, Gregory Haskins, (Tue Oct 9, 10:25 am)