aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 50e4e3d15e83..34f94240642f 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -2627,6 +2627,11 @@ void sched_fork(struct task_struct *p, int clone_flags)
2627 if (p->normal_prio < DEFAULT_PRIO) 2627 if (p->normal_prio < DEFAULT_PRIO)
2628 p->prio = DEFAULT_PRIO; 2628 p->prio = DEFAULT_PRIO;
2629 2629
2630 if (PRIO_TO_NICE(p->static_prio) < 0) {
2631 p->static_prio = NICE_TO_PRIO(0);
2632 set_load_weight(p);
2633 }
2634
2630 /* 2635 /*
2631 * We don't need the reset flag anymore after the fork. It has 2636 * We don't need the reset flag anymore after the fork. It has
2632 * fulfilled its duty: 2637 * fulfilled its duty: