Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182522
b: refs/heads/master
c: 83ab0aa
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner committed Feb 17, 2010
1 parent abf06d8 commit 087171e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6e40f5bbbc734231bc5809d3eb785e3c21f275d7
refs/heads/master: 83ab0aa0d5623d823444db82c3b3c34d7ec364ae
6 changes: 4 additions & 2 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -4249,14 +4249,15 @@ void rt_mutex_setprio(struct task_struct *p, int prio)
unsigned long flags;
int oldprio, on_rq, running;
struct rq *rq;
const struct sched_class *prev_class = p->sched_class;
const struct sched_class *prev_class;

BUG_ON(prio < 0 || prio > MAX_PRIO);

rq = task_rq_lock(p, &flags);
update_rq_clock(rq);

oldprio = p->prio;
prev_class = p->sched_class;
on_rq = p->se.on_rq;
running = task_current(rq, p);
if (on_rq)
Expand Down Expand Up @@ -4476,7 +4477,7 @@ static int __sched_setscheduler(struct task_struct *p, int policy,
{
int retval, oldprio, oldpolicy = -1, on_rq, running;
unsigned long flags;
const struct sched_class *prev_class = p->sched_class;
const struct sched_class *prev_class;
struct rq *rq;
int reset_on_fork;

Expand Down Expand Up @@ -4590,6 +4591,7 @@ static int __sched_setscheduler(struct task_struct *p, int policy,
p->sched_reset_on_fork = reset_on_fork;

oldprio = p->prio;
prev_class = p->sched_class;
__setscheduler(rq, p, policy, param->sched_priority);

if (running)
Expand Down

0 comments on commit 087171e

Please sign in to comment.