aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Brandenburg <bbb@mpi-sws.org>2013-07-01 17:51:06 -0400
committerBjoern Brandenburg <bbb@mpi-sws.org>2014-06-07 05:31:00 -0400
commit0b01ea16d5e1536d5be712b2299d08ca94dc19d4 (patch)
treee1ad4006b113868e126550c35727420fd2ca3b21
parentf0c13f9a341b432005ed2cf045aa201cf86f0baa (diff)
Reset SCHED_LITMUS scheduling class on fork
-rw-r--r--kernel/sched/core.c2
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;