On Wed, 2004-08-04 at 23:06, Nick Piggin wrote:
Peter Williams wrote:
Nick Piggin wrote:
However if you add or remove scheduling policies, your
p->policy method breaks.
Not if Albert's numbering system is used.
What if another realtime policy is added? Or one is removed?
What if, what if...
You're going to have to change the code anyway.
One might toss this into <linux/sched.h> to make
as a nice reminder:
#define SCHEDS_RT (SCHED_RR|SCHED_FIFO)
As it is now, SCHED_FIFO is already used as a
bit flag in one place.