mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* spin_lock_irqsave only re-enables interrupts while spinning on some archs?
@ 2006-03-06 18:25 Chuck Ebbert
  2006-03-06 19:07 ` linux-os (Dick Johnson)
  0 siblings, 1 reply; 2+ messages in thread
From: Chuck Ebbert @ 2006-03-06 18:25 UTC (permalink / raw)
  To: linux-kernel

On some architectures, spin_lock_irqsave() re-enables interrupts when
spinning while waiting for the lock to become available.  The list
of archs includes i386, powerpc and ia64.  Others leave interrupts
disabled while spinning (x86_64, arm, alpha).  They just define
__raw_spin_lock_flags to be the same as __raw_spin_lock.  (And
because predication is so efficient, ia64 does the opposite:
it uses __raw_spin_lock_flags for everything -- a neat trick.)

Shouldn't there be a standard way of doing this?  Is there any practical
difference in behavior?

-- 
Chuck
"Penguins don't come from next door, they come from the Antarctic!"

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

end of thread, other threads:[~2006-03-06 19:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-06 18:25 spin_lock_irqsave only re-enables interrupts while spinning on some archs? Chuck Ebbert
2006-03-06 19:07 ` linux-os (Dick Johnson)

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

all inboxes | Powered by JetHome®