[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.58.0710151347161.26495@gandalf.stny.rr.com>
Date: Mon, 15 Oct 2007 13:47:33 -0400 (EDT)
From: Steven Rostedt <rostedt@...dmis.org>
To: Gregory Haskins <ghaskins@...ell.com>
cc: Peter Zijlstra <a.p.zijlstra@...llo.nl>,
RT <linux-rt-users@...r.kernel.org>, Ingo Molnar <mingo@...e.hu>,
LKML <linux-kernel@...r.kernel.org>,
Thomas Gleixner <tglx@...utronix.de>
Subject: Re: [PATCH 4/7] RT: Add support for updating push-rt priority under
PI boost
On Fri, 12 Oct 2007, Gregory Haskins wrote:
Again no description.
-- Steve
> Signed-off-by: Gregory Haskins <ghaskins@...ell.com>
> ---
>
> kernel/sched.c | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/kernel/sched.c b/kernel/sched.c
> index 50c88e8..62f9f0b 100644
> --- a/kernel/sched.c
> +++ b/kernel/sched.c
> @@ -4663,6 +4663,7 @@ void rt_mutex_setprio(struct task_struct *p, int prio)
> * this runqueue and our priority is higher than the current's
> */
> if (task_running(rq, p)) {
> + set_rq_prio(rq, p->prio);
> if (p->prio > oldprio)
> resched_task(rq->curr);
> } else {
> @@ -4722,6 +4723,9 @@ void set_user_nice(struct task_struct *p, long nice)
> */
> if (delta < 0 || (delta > 0 && task_running(rq, p)))
> resched_task(rq->curr);
> +
> + if (delta && task_running(rq, p))
> + set_rq_prio(rq, p->prio);
> }
> out_unlock:
> task_rq_unlock(rq, &flags);
>
>
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists