From: Ingo Molnar <mingo@elte.hu>
To: Gregory Haskins <ghaskins@novell.com>
Cc: rostedt@home.goodmis.org, peterz@infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [git pull] fixes for tip/sched/rt
Date: Tue, 13 Jan 2009 02:43:33 +0100 [thread overview]
Message-ID: <20090113014333.GA23448@elte.hu> (raw)
In-Reply-To: <20090112192200.4511.6357.stgit@dev.haskins.net>
* Gregory Haskins <ghaskins@novell.com> wrote:
> +#ifdef CONFIG_SMP
> + if (prio < prev_prio) {
> + struct rq *rq = rq_of_rt_rq(rt_rq);
>
> /*
> * If the new task is higher in priority than anything on the
> - * run-queue, we have a new high that must be published to
> - * the world. We also know that the previous high becomes
> - * our next-highest.
> + * run-queue, we know that the previous high becomes our
> + * next-highest.
> */
> + rt_rq->highest_prio.next = prev_prio;
> +
> if (rq->online)
> cpupri_set(&rq->rd->cpupri, rq->cpu, prio);
nice cleanups.
couldnt this portion too be moved into a helper function?
> #ifdef CONFIG_SMP
> + if (rt_rq->rt_nr_running && (prio <= rt_rq->highest_prio.next))
> + rt_rq->highest_prio.next = next_prio(rq);
>
> + if (rq->online && rt_rq->highest_prio.curr != prev_prio)
> cpupri_set(&rq->rd->cpupri, rq->cpu, rt_rq->highest_prio.curr);
> +#endif
ditto.
> +static inline
> +void inc_rt_tasks(struct sched_rt_entity *rt_se, struct rt_rq *rt_rq)
> +{
> + int prio = rt_se_prio(rt_se);
> +
> + WARN_ON(!rt_prio(prio));
> + rt_rq->rt_nr_running++;
> +
> + inc_rt_prio(rt_rq, prio);
> + inc_rt_migration(rt_se, rt_rq);
> +
> +#ifdef CONFIG_RT_GROUP_SCHED
> + if (rt_se_boosted(rt_se))
> + rt_rq->rt_nr_boosted++;
> +
> + if (rt_rq->tg)
> + start_rt_bandwidth(&rt_rq->tg->rt_bandwidth);
> +#else
> + start_rt_bandwidth(&def_rt_bandwidth);
> +#endif
ditto.
Ingo
next prev parent reply other threads:[~2009-01-13 1:44 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-05 14:24 [git pull] RT scheduler updates for tip Gregory Haskins
2008-12-08 14:32 ` Ingo Molnar
2008-12-08 16:05 ` [PATCH] sched: fix build failure in kernel/sched_rt.c Ingo Molnar
2008-12-08 16:14 ` Gregory Haskins
2008-12-08 16:12 ` [git pull] RT scheduler updates for tip Ingo Molnar
2008-12-08 16:57 ` Gregory Haskins
2008-12-09 14:35 ` Gregory Haskins
2008-12-12 11:34 ` Ingo Molnar
2008-12-12 11:49 ` Ingo Molnar
2008-12-29 15:37 ` Gregory Haskins
2008-12-29 18:13 ` Gregory Haskins
2009-01-11 4:01 ` Ingo Molnar
2009-01-11 9:53 ` Ingo Molnar
2009-01-12 14:45 ` Gregory Haskins
2009-01-12 14:45 ` Ingo Molnar
2009-01-12 15:05 ` Gregory Haskins
2009-01-12 19:23 ` [git pull] fixes for tip/sched/rt Gregory Haskins
2009-01-13 1:43 ` Ingo Molnar [this message]
2009-01-13 2:37 ` [PATCH v2] sched: fix build error in kernel/sched_rt.c when RT_GROUP_SCHED && !SMP Gregory Haskins
2009-01-14 8:01 ` Ingo Molnar
2009-01-14 10:54 ` Peter Zijlstra
2009-01-14 11:03 ` Ingo Molnar
2009-01-14 13:21 ` Gregory Haskins
2009-01-14 14:46 ` [PATCH v3 0/2] fixes for tip/sched/rt Gregory Haskins
2009-01-14 14:46 ` [PATCH v3 1/2] sched: de CPP-ify the scheduler code Gregory Haskins
2009-01-14 15:11 ` Steven Rostedt
2009-01-14 15:28 ` Gregory Haskins
2009-01-14 14:46 ` [PATCH v3 2/2] sched: fix build error in kernel/sched_rt.c when RT_GROUP_SCHED && !SMP Gregory Haskins
2009-01-15 12:30 ` [PATCH v3 0/2] fixes for tip/sched/rt Ingo Molnar
2009-01-16 13:35 ` Ingo Molnar
2009-01-16 13:45 ` Gregory Haskins
2009-01-16 13:46 ` Peter Zijlstra
2009-01-16 14:02 ` Gregory Haskins
2009-01-16 14:02 ` Ingo Molnar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090113014333.GA23448@elte.hu \
--to=mingo@elte.hu \
--cc=ghaskins@novell.com \
--cc=linux-kernel@vger.kernel.org \
--cc=peterz@infradead.org \
--cc=rostedt@home.goodmis.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox