question about spinlocks on UP

Oliver Neukum (neukum@fachschaft.org.chemie.uni-muenchen.de)
Tue, 14 Jul 1998 23:22:10 +0200 (CEST)


Hello Gurus,
is the first parameter of spin_lock_irqsave relevant on UP ?
In other words is

#ifdef SMP
spinlock_t lock_xxx ...
#endif

#ifdef SMP
spin_lock_irqsave(&lock_xxx,flags);
#else
spin_lock_irqsave(NULL,flags);
#endif

without side effects and is that worth it ?
I don't like declaring a global variable unnecessary.

TIA
Oliver Neukum

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html