Ryan
2013-04-29 08:30:48 UTC
Hi,
I have a question on spinlock_irqsave api. Am not sure if this is the
right place to ask.
Any help is highly appreciated.
let me know if my understanding is correct?
spinlock_irqsave() <== Disables the IRQ?
<== No IRQs (that means no KB
interrupt,Interrupts from touch screen... etc..)
spinlock_irqrestore()
Is my understanding correct?
So the "time spend between spinlock_irqsave and spinlock_restore
should be very short?
For example there should not be something like this? Am i correct?
spinlock_irqsave()
mdelay(1000);
spinlock_irqrestore()
Also, what is meant by "spinlock_irqsave" disabled irq locally?
What is locally here?
Thanks,
Ryan
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
I have a question on spinlock_irqsave api. Am not sure if this is the
right place to ask.
Any help is highly appreciated.
let me know if my understanding is correct?
spinlock_irqsave() <== Disables the IRQ?
<== No IRQs (that means no KB
interrupt,Interrupts from touch screen... etc..)
spinlock_irqrestore()
Is my understanding correct?
So the "time spend between spinlock_irqsave and spinlock_restore
should be very short?
For example there should not be something like this? Am i correct?
spinlock_irqsave()
mdelay(1000);
spinlock_irqrestore()
Also, what is meant by "spinlock_irqsave" disabled irq locally?
What is locally here?
Thanks,
Ryan
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs