The simple answer would be we do not want to be interrupted during a interrupt 
handler. For SMP, there are other CPUs which can respond to IRQs.

-daveti


> On Nov 2, 2014, at 2:30 PM, mind entropy <mindentr...@gmail.com> wrote:
> 
> Hi,
> 
> When I do spin_lock_irq it disables IRQ's which were enabled. What is
> the reason for disabling all the irq's rather than disabling the
> specific IRQ line which shares the resource? Wouldn't this be more
> efficient and would not lose any interrupts especially if I have a
> critical sensor ADC?
> 
> Thanks,
> Gautam.
> 
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Reply via email to