lkml.org 
[lkml]   [2014]   [Feb]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] sched/deadline: Cleanup RT leftovers from {inc/dec}_dl_migration
On Tue, 25 Feb 2014 19:52:23 +0400
Kirill Tkhai <ktkhai@parallels.com> wrote:

>
> In deadline class we do not have group scheduling.
>
> So, let's remove unnecessary
>
> X = X;
>
> equations.
>

Thanks!

- Juri

> Signed-off-by: Kirill Tkhai <ktkhai@parallels.com>
> CC: Juri Lelli <juri.lelli@gmail.com>
> CC: Peter Zijlstra <peterz@infradead.org>
> CC: Ingo Molnar <mingo@redhat.com>
> ---
> kernel/sched/deadline.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c
> index ef96edc..2c28437 100644
> --- a/kernel/sched/deadline.c
> +++ b/kernel/sched/deadline.c
> @@ -135,7 +135,6 @@ static void update_dl_migration(struct dl_rq *dl_rq)
> static void inc_dl_migration(struct sched_dl_entity *dl_se, struct dl_rq *dl_rq)
> {
> struct task_struct *p = dl_task_of(dl_se);
> - dl_rq = &rq_of_dl_rq(dl_rq)->dl;
>
> if (p->nr_cpus_allowed > 1)
> dl_rq->dl_nr_migratory++;
> @@ -146,7 +145,6 @@ static void inc_dl_migration(struct sched_dl_entity *dl_se, struct dl_rq *dl_rq)
> static void dec_dl_migration(struct sched_dl_entity *dl_se, struct dl_rq *dl_rq)
> {
> struct task_struct *p = dl_task_of(dl_se);
> - dl_rq = &rq_of_dl_rq(dl_rq)->dl;
>
> if (p->nr_cpus_allowed > 1)
> dl_rq->dl_nr_migratory--;
>
>
>


\
 
 \ /
  Last update: 2014-02-25 18:21    [W:0.047 / U:0.304 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site