Re: [Fwd: Re: [patch] Real-Time Preemption, -RT-2.6.9-mm1-V0.4]

From: Lee Revell
Date: Sun Oct 31 2004 - 07:17:36 EST


On Sun, 2004-10-31 at 11:00 +0100, Florian Schmidt wrote:
> thanks for the patch (it has a little problem, since it uses prio 99 which
> is always equal or greater than the rtc thread prio. i changed it in my
> local version to accept a parameter).

OK good idea. As in the JACK case, the relative priorities of the RTC
irq thread and the test program should not matter as these two should
never contend - something is seriously wrong if both are ever runnable
at the same time.

Actually this raises an interesting point. Maybe all IRQ threads should
get the same RT priority by default, so we get FIFO scheduling among IRQ
threads. It seems like this would make it harder for IRQ threads to
starve each other. Then we only have to elevate the priority of the IRQ
thread(s) we are interested in.

Another idea is to allow SCHED_FIFO processes of equal priority to
preempt one another on a LIFO basis. Wouldn't this be very close to the
traditional Linux interrupt model, where interrupts can interrupt each
other and we handle the most recent interrupt first?

Lee



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/