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>2013-08-07 03:47:00 -0400
commit73b2f982396d6e394b8befc657cd6d24a3958e1d (patch)
tree8c890536b6995a622d567179a7b0a70505cdc006
parenta36b720a2742bb03b3d8f5b6763dc1a876013f62 (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 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)
1922 prev_state = prev->state; 1922 prev_state = prev->state;
1923 vtime_task_switch(prev); 1923 vtime_task_switch(prev);
1924 finish_arch_switch(prev); 1924 finish_arch_switch(prev);
1925 litmus->finish_switch(prev);
1926 prev->rt_param.stack_in_use = NO_CPU;
1925 perf_event_task_sched_in(prev, current); 1927 perf_event_task_sched_in(prev, current);
1926 finish_lock_switch(rq, prev); 1928 finish_lock_switch(rq, prev);
1927 finish_arch_post_lock_switch(); 1929 finish_arch_post_lock_switch();