From e728184e7db3d1cbd1b0f3398233c2bbdc6db07e Mon Sep 17 00:00:00 2001 From: Bjoern Brandenburg Date: Sun, 9 Aug 2015 13:18:53 +0200 Subject: Reset SCHED_LITMUS scheduling class on fork --- kernel/sched/core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) * Revert to default priority/policy on fork if requested. */ if (unlikely(p->sched_reset_on_fork)) { - if (task_has_dl_policy(p) || task_has_rt_policy(p)) { + if (task_has_dl_policy(p) || task_has_rt_policy(p) + || p->policy == SCHED_LITMUS) { p->policy = SCHED_NORMAL; p->static_prio = NICE_TO_PRIO(0); p->rt_priority = 0; -- cgit v1.2.2