public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* spin_locks without smp.
@ 2003-01-10 11:42 Maciej Soltysiak
  2003-01-10 11:45 ` William Lee Irwin III
  2003-01-10 13:29 ` Alan Cox
  0 siblings, 2 replies; 10+ messages in thread
From: Maciej Soltysiak @ 2003-01-10 11:42 UTC (permalink / raw)
  To: linux-kernel

Hi,

while browsing through the network drivers about the etherleak issue i
found that some drivers have:

#ifdef CONFIG_SMP
	spin_lock_irqsave(...)
#endif

and some just:

	spin_lock_irqsave(...)

or similar.
Which version should be practiced? i thought spinlocks are irrelevant
without SMP so we should use #ifdef to shorten the execution path.

Regards,
Maciej Soltysiak


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

end of thread, other threads:[~2003-01-10 13:24 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-10 11:42 spin_locks without smp Maciej Soltysiak
2003-01-10 11:45 ` William Lee Irwin III
2003-01-10 11:48   ` William Lee Irwin III
2003-01-10 12:09     ` [PATCH]Re: " Maciej Soltysiak
2003-01-10 13:20       ` Alan Cox
2003-01-10 13:04         ` William Lee Irwin III
2003-01-10 14:19           ` Alan Cox
2003-01-10 13:23   ` Alan Cox
2003-01-10 12:41     ` William Lee Irwin III
2003-01-10 13:29 ` Alan Cox

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