All of lore.kernel.org
 help / color / mirror / Atom feed
* A spinlock_irqsave question
@ 2013-04-29  8:30 Ryan
  2013-04-29  9:12 ` Mario Smarduch
  0 siblings, 1 reply; 5+ messages in thread
From: Ryan @ 2013-04-29  8:30 UTC (permalink / raw)
  To: linux-newbie

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 majordomo@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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-05-03  6:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-29  8:30 A spinlock_irqsave question Ryan
2013-04-29  9:12 ` Mario Smarduch
2013-04-29  9:21   ` Ryan
2013-04-30  8:54     ` Mario Smarduch
2013-05-03  6:45       ` Ryan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.