On Wed, 23 May 2001, Rini van Zetten wrote:

> Hi all,
>
> I' ve a problem regarding scheduling tasks. let me explain my software :
>
> If have one low priority task which consumes a large part of cpu time.
> If have one high priority task which is started by a interrupt routine and
> do a little processing.
> If have an interrupt routine which wakes up the high priority task.
>
> The problem is:
>
> When the interrupt occurs, the high priority task is fired. runs until it
> goes asleep again. after this the low priority task get running again (it
> was stopped by the interrupt) BUT the interrupt routine is not finished yet.
> After the low priority task falls asleep, and eventualy the interrupt
> routine ends.
>
> How can i let the interrupt routine ends immediately ???? (if the interrupt
> routine is not finished, new interrups are blocked);
>
> Rini

In my code I use rtl_hard_enable_irq(port_irq) to be sure a new interrupt
on that port will be handled even if the previous one is not finished yet.
Stefano.

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to