diff options
| author | Bjoern Brandenburg <bbb@mpi-sws.org> | 2015-08-09 07:18:53 -0400 |
|---|---|---|
| committer | Bjoern Brandenburg <bbb@mpi-sws.org> | 2017-05-26 17:12:34 -0400 |
| commit | fda7b2d35c32b6c8393426584119f9cde6e55d84 (patch) | |
| tree | 2050122524ceeae5aa18b02aee0f727a3597757b /kernel | |
| parent | f61e5d65083c0f696c392d17ea9cf8f5351a250a (diff) | |
Hook into finish_switch()
To keep track of stack usage and to notify plugin, if necessary.
Diffstat (limited to 'kernel')
| -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 1be39cfdb7e3..ee7526726004 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c | |||
| @@ -2803,6 +2803,8 @@ static struct rq *finish_task_switch(struct task_struct *prev) | |||
| 2803 | */ | 2803 | */ |
| 2804 | prev_state = prev->state; | 2804 | prev_state = prev->state; |
| 2805 | vtime_task_switch(prev); | 2805 | vtime_task_switch(prev); |
| 2806 | litmus->finish_switch(prev); | ||
| 2807 | prev->rt_param.stack_in_use = NO_CPU; | ||
| 2806 | perf_event_task_sched_in(prev, current); | 2808 | perf_event_task_sched_in(prev, current); |
| 2807 | finish_lock_switch(rq, prev); | 2809 | finish_lock_switch(rq, prev); |
| 2808 | finish_arch_post_lock_switch(); | 2810 | finish_arch_post_lock_switch(); |
