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 | f61e5d65083c0f696c392d17ea9cf8f5351a250a (patch) | |
tree | 2eda0c9188b1d5e2f5f5a3673ed7f686f33ca8d9 | |
parent | 37703f110e1d357a1f2c8c5dedddfa3104bdc702 (diff) |
Reset SCHED_LITMUS scheduling class on fork
-rw-r--r-- | kernel/sched/core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index e5c1088860a7..1be39cfdb7e3 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c | |||
@@ -2421,7 +2421,8 @@ int sched_fork(unsigned long clone_flags, struct task_struct *p) | |||
2421 | * Revert to default priority/policy on fork if requested. | 2421 | * Revert to default priority/policy on fork if requested. |
2422 | */ | 2422 | */ |
2423 | if (unlikely(p->sched_reset_on_fork)) { | 2423 | if (unlikely(p->sched_reset_on_fork)) { |
2424 | if (task_has_dl_policy(p) || task_has_rt_policy(p)) { | 2424 | if (task_has_dl_policy(p) || task_has_rt_policy(p) |
2425 | || p->policy == SCHED_LITMUS) { | ||
2425 | p->policy = SCHED_NORMAL; | 2426 | p->policy = SCHED_NORMAL; |
2426 | p->static_prio = NICE_TO_PRIO(0); | 2427 | p->static_prio = NICE_TO_PRIO(0); |
2427 | p->rt_priority = 0; | 2428 | p->rt_priority = 0; |