diff options
author | Bjoern Brandenburg <bbb@mpi-sws.org> | 2015-08-09 07:18:53 -0400 |
---|---|---|
committer | Bjoern Brandenburg <bbb@mpi-sws.org> | 2015-08-09 07:20:30 -0400 |
commit | dfbc9a0ee19aaf08ebf2f620db43098f108fbfb2 (patch) | |
tree | fe0bda0258fe2e647b6f187fd0f64dc287d70ec3 | |
parent | e728184e7db3d1cbd1b0f3398233c2bbdc6db07e (diff) |
Hook into finish_switch()
To keep track of stack usage and to notify plugin, if necessary.
-rw-r--r-- | kernel/sched/core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index ab4f74a2daea..a9c0920fe844 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c | |||
@@ -2256,6 +2256,8 @@ static struct rq *finish_task_switch(struct task_struct *prev) | |||
2256 | prev_state = prev->state; | 2256 | prev_state = prev->state; |
2257 | vtime_task_switch(prev); | 2257 | vtime_task_switch(prev); |
2258 | finish_arch_switch(prev); | 2258 | finish_arch_switch(prev); |
2259 | litmus->finish_switch(prev); | ||
2260 | prev->rt_param.stack_in_use = NO_CPU; | ||
2259 | perf_event_task_sched_in(prev, current); | 2261 | perf_event_task_sched_in(prev, current); |
2260 | finish_lock_switch(rq, prev); | 2262 | finish_lock_switch(rq, prev); |
2261 | finish_arch_post_lock_switch(); | 2263 | finish_arch_post_lock_switch(); |