From 73b2f982396d6e394b8befc657cd6d24a3958e1d Mon Sep 17 00:00:00 2001 From: Bjoern Brandenburg Date: Mon, 1 Jul 2013 23:52:14 +0200 Subject: Hook into finish_switch() To keep track of stack usage and to notify plugin, if necessary. --- kernel/sched/core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 945b9ce2cdde..f909689b623b 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -1922,6 +1922,8 @@ static void finish_task_switch(struct rq *rq, struct task_struct *prev) prev_state = prev->state; vtime_task_switch(prev); finish_arch_switch(prev); + litmus->finish_switch(prev); + prev->rt_param.stack_in_use = NO_CPU; perf_event_task_sched_in(prev, current); finish_lock_switch(rq, prev); finish_arch_post_lock_switch(); -- cgit v1.2.2