diff options
-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 8a82c61d83df..ab4f74a2daea 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c | |||
@@ -1940,7 +1940,8 @@ int sched_fork(unsigned long clone_flags, struct task_struct *p) | |||
1940 | * Revert to default priority/policy on fork if requested. | 1940 | * Revert to default priority/policy on fork if requested. |
1941 | */ | 1941 | */ |
1942 | if (unlikely(p->sched_reset_on_fork)) { | 1942 | if (unlikely(p->sched_reset_on_fork)) { |
1943 | if (task_has_dl_policy(p) || task_has_rt_policy(p)) { | 1943 | if (task_has_dl_policy(p) || task_has_rt_policy(p) |
1944 | || p->policy == SCHED_LITMUS) { | ||
1944 | p->policy = SCHED_NORMAL; | 1945 | p->policy = SCHED_NORMAL; |
1945 | p->static_prio = NICE_TO_PRIO(0); | 1946 | p->static_prio = NICE_TO_PRIO(0); |
1946 | p->rt_priority = 0; | 1947 | p->rt_priority = 0; |