public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* when spin_lock_irq (as opposed to spin_lock_irqsave) is appropriate?
@ 2008-10-11 15:29 Andrey Borzenkov
  2008-10-11 15:41 ` Oliver Neukum
  2008-10-11 16:18 ` Arjan van de Ven
  0 siblings, 2 replies; 8+ messages in thread
From: Andrey Borzenkov @ 2008-10-11 15:29 UTC (permalink / raw)
  To: Linux Kernel Mailing List

[-- Attachment #1: Type: text/plain, Size: 387 bytes --]

Logically, one piece of kernel code has no way to know whether another
piece of kernel code (or may be hard-/firmware) has disabled some
interrupt line. So it looks like spin_lock_irq should not even exist,
except may be for very specific cases (where we are sure no other piece
of kernel code may run concurrently)?

Sorry for stupid question, I an not actually a HW type of person ...

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

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

end of thread, other threads:[~2008-10-12 23:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-11 15:29 when spin_lock_irq (as opposed to spin_lock_irqsave) is appropriate? Andrey Borzenkov
2008-10-11 15:41 ` Oliver Neukum
2008-10-11 15:55   ` Andrey Borzenkov
2008-10-12  8:08     ` Oliver Neukum
2008-10-11 16:18 ` Arjan van de Ven
2008-10-12 11:48   ` Andrey Borzenkov
2008-10-12 22:21     ` Arnd Bergmann
2008-10-12 23:12     ` Arjan van de Ven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox