[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CADZ9YHiNkU9Hq6jMrWULGj6kTnJdaPoDcAGCpGCmRNV9TzKM=Q@mail.gmail.com>
Date: Thu, 27 Oct 2011 22:43:46 +0600
From: Rakib Mullick <rakib.mullick@...il.com>
To: Sebastiano Spicuglia <spicuglia.sebastiano@...il.com>
Cc: linux-kernel@...r.kernel.org, Ingo Molnar <mingo@...e.hu>,
peterz <peterz@...radead.org>
Subject: Re: How to choose a default sched policy
On Thu, Oct 27, 2011 at 9:09 PM, Sebastiano Spicuglia
<spicuglia.sebastiano@...il.com> wrote:
> Hi all,
>
> I implemented, just for accademic purposes, a new sched
> policy. Now I need to substitute it to the fair one, so when the kernel
> runs, normal tasks are scheduled by mine policy.
> How can i perform this switch? Is there in sched.c a single
> point of switch or I have to change every occurance of
> "p->sched_class = &fair_sched_class;" with
> "p->sched_class = &mine_sched_class;"?
>
Yes, you can do it in this way. You'll also need to create a Kconfig
option, from there you can select your scheduling policy.
Alternatively, you can also take a look at Con Kolivas's sched_bfs
implementation.
Thanks,
Rakib
--
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