Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc
[linux-2.6-microblaze.git] / kernel / sched / rt.c
index dbe4629..8f720b7 100644 (file)
@@ -2357,7 +2357,7 @@ prio_changed_rt(struct rq *rq, struct task_struct *p, int oldprio)
        if (!task_on_rq_queued(p))
                return;
 
-       if (rq->curr == p) {
+       if (task_current(rq, p)) {
 #ifdef CONFIG_SMP
                /*
                 * If our priority decreases while running, we