I imagine it could be possible to check if need_resched is set when
interrupt handlers (registered with request_irq() and friends) return
and we are about to return from the interrupt. If need_resched is set
we could do a further test to see if there are any realtime processes
waiting to be run, and if so do a schedule() (and take out that
"interesting" goto in schedule(), of course). This would make the
response to interrupts much better. I assume that a realtime process
would lock all its current and future pages.
I'll admit I haven't looked closely to see what the problems would be
in doing this, but perhaps someone more knowledgeable could give some
insight? Yes, I know about RT/Linux, but I was wondering if it would
be feasible to do it within the existing framework.
Regards,
Richard....