Thanks, its clear now.Whereas:
spin_lock_irq() <-- Irqs disabled
spin_lock_irqsave() <-- Irqs disabled, save disabled state.
spin_unlock_irqrestore() <-- Retain state. Irqs still disabled.
spin_unlock_irq() <-- Irqs enabled.
So it will be better to use spin_lock_irqsave if you are not sure of the previous
irq state.
-Mahesh.
Download prohibited? No problem! CHAT from any browser, without download.