Re: Rearranging layout of code in the scheduler

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Peter Zijlstra
Date: Tuesday, October 28, 2008 - 9:50 am

On Tue, 2008-10-28 at 16:34 +0100, Henrik Austad wrote:

You and a few other folks. The most interesting part of EDF is not the
actual scheduler itself (although there are fun issues with that as
well), but extending the Priority Inheritance framework to deal with all
the fun cases that come with EDF.


I'd start out small by moving the functions to the right file. After
that you could look at providing methods in the sched_class.


You might need to be careful there, or introduce sched_(fair|rt).h for
those.


Sounds good, its been on the agenda for a while, but nobody ever got
around to it.

Other cleanups that can be done are:
 - get rid of all the load balance iterator stuff and move
   that all into sched_fair

 - extract the common sched_entity members and create:

   struct {
	struct sched_entity_common common;
	union {
		struct sched_entity fair;
		struct sched_rt_entity rt;
	}
   }


Well, adding a sched_class, no need to replace anything besides that.



--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Rearranging layout of code in the scheduler, Henrik Austad, (Tue Oct 28, 8:34 am)
Re: Rearranging layout of code in the scheduler, Peter Zijlstra, (Tue Oct 28, 9:50 am)
Re: Rearranging layout of code in the scheduler, Henrik Austad, (Tue Oct 28, 12:41 pm)
Re: Rearranging layout of code in the scheduler, faggioli, (Thu Oct 30, 9:49 am)