interrupt_handler(irq, regs)
{
        ack_device();
        rtl_hard_enable_irq(irq);
        wake_up_thread();
}

Rini van Zetten ([EMAIL PROTECTED]) 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
> 

----- End of forwarded message from [EMAIL PROTECTED] -----
-- [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/

Reply via email to