diff options
author | Bjoern Brandenburg <bbb@mpi-sws.org> | 2013-07-01 17:51:06 -0400 |
---|---|---|
committer | Namhoon Kim <namhoonk@cs.unc.edu> | 2014-10-21 10:07:18 -0400 |
commit | 4fd5fc39aeed8941623be74fcadc3742055f459d (patch) | |
tree | e4ec7aba1a650f520ed3c16325f815ae414f6260 | |
parent | c728e26abc70530c62b794b017e6135ecd8df8f0 (diff) |
Reset SCHED_LITMUS scheduling class on fork
-rw-r--r-- | kernel/sched/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index eb32fd0fc579..8a421e9d5ebc 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c | |||
@@ -1721,7 +1721,7 @@ void sched_fork(struct task_struct *p) | |||
1721 | * Revert to default priority/policy on fork if requested. | 1721 | * Revert to default priority/policy on fork if requested. |
1722 | */ | 1722 | */ |
1723 | if (unlikely(p->sched_reset_on_fork)) { | 1723 | if (unlikely(p->sched_reset_on_fork)) { |
1724 | if (task_has_rt_policy(p)) { | 1724 | if (task_has_rt_policy(p) || p->policy == SCHED_LITMUS) { |
1725 | p->policy = SCHED_NORMAL; | 1725 | p->policy = SCHED_NORMAL; |
1726 | p->static_prio = NICE_TO_PRIO(0); | 1726 | p->static_prio = NICE_TO_PRIO(0); |
1727 | p->rt_priority = 0; | 1727 | p->rt_priority = 0; |