aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel
diff options
context:
space:
mode:
authorBjoern Brandenburg <bbb@mpi-sws.org>2015-08-09 07:18:49 -0400
committerBjoern Brandenburg <bbb@mpi-sws.org>2015-08-09 06:21:19 -0400
commit0db6e11e49f7bc4893ffff4d8a7af1235894d986 (patch)
tree062186c38cf5752b550d116d4ad7ece3472e3c34 /arch/x86/kernel
parent4d6bd5eaa2e1e06d0957376d6e49e6b76ca88db5 (diff)
Integrate preemption state machine with Linux scheduler
Track when a processor is going to schedule "soon".
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r--arch/x86/kernel/smp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/kernel/smp.c b/arch/x86/kernel/smp.c
index 7ce9fb210d55..431c3d29a667 100644
--- a/arch/x86/kernel/smp.c
+++ b/arch/x86/kernel/smp.c
@@ -24,6 +24,7 @@
24#include <linux/cpu.h> 24#include <linux/cpu.h>
25#include <linux/gfp.h> 25#include <linux/gfp.h>
26 26
27#include <litmus/preempt.h>
27#include <litmus/debug_trace.h> 28#include <litmus/debug_trace.h>
28 29
29#include <asm/mtrr.h> 30#include <asm/mtrr.h>
@@ -275,6 +276,11 @@ __visible void smp_reschedule_interrupt(struct pt_regs *regs)
275 /* 276 /*
276 * KVM uses this interrupt to force a cpu out of guest mode 277 * KVM uses this interrupt to force a cpu out of guest mode
277 */ 278 */
279
280 /* LITMUS^RT: this IPI might need to trigger the sched state machine.
281 * Starting from 3.0 schedule_ipi() actually does something. This may
282 * increase IPI latencies compared with previous versions. */
283 sched_state_ipi();
278} 284}
279 285
280static inline void smp_entering_irq(void) 286static inline void smp_entering_irq(void)