aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorBjoern Brandenburg <bbb@mpi-sws.org>2013-06-25 01:30:56 -0400
committerBjoern Brandenburg <bbb@mpi-sws.org>2013-08-07 03:46:51 -0400
commit15a3dd60f0dc56db35d3335e7ea0ea8ab67eedfb (patch)
treef34e044fe45e8832891486c822c3eae4bcfd0ca5 /arch/arm
parent8f88280b7201efb67751b904728d7c8ed9786f93 (diff)
Integrate preemption state machine with Linux scheduler
Track when a processor is going to schedule "soon".
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/kernel/smp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c
index 5919eb451bb9..1a945e27d310 100644
--- a/arch/arm/kernel/smp.c
+++ b/arch/arm/kernel/smp.c
@@ -46,6 +46,8 @@
46#include <asm/virt.h> 46#include <asm/virt.h>
47#include <asm/mach/arch.h> 47#include <asm/mach/arch.h>
48 48
49#include <litmus/preempt.h>
50
49/* 51/*
50 * as from 2.5, kernels no longer have an init_tasks structure 52 * as from 2.5, kernels no longer have an init_tasks structure
51 * so we need some other way of telling a new secondary core 53 * so we need some other way of telling a new secondary core
@@ -617,6 +619,8 @@ void handle_IPI(int ipinr, struct pt_regs *regs)
617#endif 619#endif
618 620
619 case IPI_RESCHEDULE: 621 case IPI_RESCHEDULE:
622 /* LITMUS^RT: take action based on scheduler state */
623 sched_state_ipi();
620 scheduler_ipi(); 624 scheduler_ipi();
621 break; 625 break;
622 626