When an Interrupt occurs most device drivers creates a critical section using spin_lock_irqsave or spin_lock_irq which disables the interrupt.
In such a case the Interrupts are disabled by the IRQ handler. My question is whether Linux kernel disables any interrupts just when the IRQ handler executes or it just wait for the IRQ handler programmer to disable the IRQ in whatever way?
My understanding is that Russel King has implemented IRQ_DISABLED, If this flag is set then only the IRQ that has occurred is disabled lately however enabled automatically by Kernel after IRQ handler finishes. Is that correct? This also happens in delayed manner.Can anyone explain me how exactly the IRQ disabling is delayed?
From free-electrons link , what I read is :-
The interrupt is kept enabled and is masked in the flow handler when an interrupt event happens. This prevents losing edge interrupts on hardware which does not store an edge interrupt event while the interrupt is disabled at the hardware level.
Can anyone please explain the bold line here?
Regards,
Priyaranjan
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies