Re: patch-2.0.30, lp.c - bad patch

Alan Cox (alan@lxorguk.ukuu.org.uk)
Fri, 2 May 1997 20:51:46 +0100 (BST)


> Yes and No ... maybe the statement should be extended:
>
> if(!intr_count && need_resched)
> schedule();
>
> to avoid such critical problems with such foreign drivers.

Erm. Be careful, this trick doesnt always work as you intend. In this case
I think it will, but if you are a hard real time process schedule() wont
ever give up the CPU