[PATCH 1/10] net: remove cli()/sti() from drivers/net/bagetlance.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: James Nelson <james4765@xxxxxxxxx>

diff -urN --exclude='*~' linux-2.6.10-mm2-original/drivers/net/bagetlance.c linux-2.6.10-mm2/drivers/net/bagetlance.c
--- linux-2.6.10-mm2-original/drivers/net/bagetlance.c	2005-01-08 12:16:35.000000000 -0500
+++ linux-2.6.10-mm2/drivers/net/bagetlance.c	2005-01-11 17:36:28.000000000 -0500
@@ -927,8 +927,7 @@
 
 	/* We're not prepared for the int until the last flags are set/reset. And
 	 * the int may happen already after setting the OWN_CHIP... */
-	save_flags(flags);
-	cli();
+	local_irq_save(flags);
 
 	/* Mask to ring buffer boundary. */
 	entry = lp->cur_tx & TX_RING_MOD_MASK;
@@ -968,7 +967,7 @@
 		dev->tbusy = 0;
 	else
 		lp->tx_full = 1;
-	restore_flags(flags);
+	local_irq_restore(flags);
 
 	return 0;
 }
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux