aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Brandenburg <bbb@mpi-sws.org>2013-07-01 17:52:14 -0400
committerBjoern Brandenburg <bbb@mpi-sws.org>2014-06-07 05:31:01 -0400
commit666b2ad99ea4ef4bf094dbcd0b828ee4ac7a61fd (patch)
tree55850f05f81dbf2c99d0268d7cfb78635d3bd409
parent0b01ea16d5e1536d5be712b2299d08ca94dc19d4 (diff)
Hook into finish_switch()
To keep track of stack usage and to notify plugin, if necessary.
-rw-r--r--kernel/sched/core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 8a421e9d5ebc..b50b3c2e9887 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -1925,6 +1925,8 @@ static void finish_task_switch(struct rq *rq, struct task_struct *prev)
1925 prev_state = prev->state; 1925 prev_state = prev->state;
1926 vtime_task_switch(prev); 1926 vtime_task_switch(prev);
1927 finish_arch_switch(prev); 1927 finish_arch_switch(prev);
1928 litmus->finish_switch(prev);
1929 prev->rt_param.stack_in_use = NO_CPU;
1928 perf_event_task_sched_in(prev, current); 1930 perf_event_task_sched_in(prev, current);
1929 finish_lock_switch(rq, prev); 1931 finish_lock_switch(rq, prev);
1930 finish_arch_post_lock_switch(); 1932 finish_arch_post_lock_switch();