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 | e728184e7db3d1cbd1b0f3398233c2bbdc6db07e (patch) | |
tree | 9b460282d747b3504346b427fb27faa47a507f8d /kernel | |
parent | eecee2fcff2aebb029f9f9c979772f05165213f7 (diff) |
Reset SCHED_LITMUS scheduling class on fork
Diffstat (limited to 'kernel')
-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; |