Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158318
b: refs/heads/master
c: 6c697bd
h: refs/heads/master
v: v3
  • Loading branch information
Mike Galbraith authored and Ingo Molnar committed Jun 17, 2009
1 parent f083181 commit e5d1c84
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b9dc29e72fd3dc2a739ce8eafd958220d0745734
refs/heads/master: 6c697bdf08a09ce461e305a22362973036e95db3
5 changes: 5 additions & 0 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -2627,6 +2627,11 @@ void sched_fork(struct task_struct *p, int clone_flags)
if (p->normal_prio < DEFAULT_PRIO)
p->prio = DEFAULT_PRIO;

if (PRIO_TO_NICE(p->static_prio) < 0) {
p->static_prio = NICE_TO_PRIO(0);
set_load_weight(p);
}

/*
* We don't need the reset flag anymore after the fork. It has
* fulfilled its duty:
Expand Down

0 comments on commit e5d1c84

Please sign in to comment.