patch-2.3.99-pre6 linux/drivers/net/wan/sdla_fr.c
Next file: linux/drivers/net/wan/sdla_ppp.c
Previous file: linux/drivers/net/wan/sdla_chdlc.c
Back to the patch index
Back to the overall index
- Lines: 40
- Date:
Fri Apr 21 16:08:45 2000
- Orig file:
v2.3.99-pre5/linux/drivers/net/wan/sdla_fr.c
- Orig date:
Thu Mar 2 14:36:22 2000
diff -u --recursive --new-file v2.3.99-pre5/linux/drivers/net/wan/sdla_fr.c linux/drivers/net/wan/sdla_fr.c
@@ -109,6 +109,7 @@
* Jan 02, 1997 Gene Kozin Initial version.
*****************************************************************************/
+#include <linux/config.h>
#include <linux/kernel.h> /* printk(), and other useful stuff */
#include <linux/stddef.h> /* offsetof(), etc. */
#include <linux/errno.h> /* return codes */
@@ -3677,13 +3678,13 @@
{
if (card->hw.type != SDLA_S514){
-#ifdef __SMP__
+#ifdef CONFIG_SMP
spin_lock_irqsave(&card->lock, *smp_flags);
#else
disable_irq(card->hw.irq);
#endif
}
-#ifdef __SMP__
+#ifdef CONFIG_SMP
else{
spin_lock(&card->lock);
}
@@ -3693,13 +3694,13 @@
void s508_s514_unlock(sdla_t *card, unsigned long *smp_flags)
{
if (card->hw.type != SDLA_S514){
-#ifdef __SMP__
+#ifdef CONFIG_SMP
spin_unlock_irqrestore(&card->lock, *smp_flags);
#else
enable_irq(card->hw.irq);
#endif
}
-#ifdef __SMP__
+#ifdef CONFIG_SMP
else{
spin_unlock(&card->lock);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)