netdev
[Top] [All Lists]

[PATCH] to make net_big_sklist_lock static

To: netdev@xxxxxxxxxxx
Subject: [PATCH] to make net_big_sklist_lock static
From: "David C. Hansen" <haveblue@xxxxxxxxxx>
Date: Wed, 05 Sep 2001 15:31:46 -0700
Sender: owner-netdev@xxxxxxxxxxx
Just like the last one:
Here is a little patch to make net_big_sklist_lock static instead of
global. 
It is against 2.4.7, but applies cleanly to 2.4.9.

The motivation for doing this came from this:
http://lse.sourceforge.net/lockhier/global-spin-lock
--- linux-2.4.7/net/core/dev.c  Sun Jul 15 16:29:40 2001
+++ linux/net/core/dev.c        Fri Jul 27 11:20:01 2001
@@ -1068,7 +1068,7 @@
 atomic_t netdev_dropping = ATOMIC_INIT(0);
 static unsigned long netdev_fc_mask = 1;
 unsigned long netdev_fc_xoff = 0;
-spinlock_t netdev_fc_lock = SPIN_LOCK_UNLOCKED;
+static spinlock_t netdev_fc_lock = SPIN_LOCK_UNLOCKED;
 
 static struct
 {
--
David C. Hansen
haveblue@xxxxxxxxxx
IBM LTC Base/OS Group
(503)578-4080
--- linux-2.4.5/drivers/video/hgafb.c   Fri Feb  9 11:30:23 2001
+++ linux/drivers/video/hgafb.c Tue Jun 26 11:17:14 2001
@@ -106,7 +106,7 @@
 
 /* Global locks */
 
-spinlock_t hga_reg_lock = SPIN_LOCK_UNLOCKED;
+static spinlock_t hga_reg_lock = SPIN_LOCK_UNLOCKED;
 
 /* Framebuffer driver structures */
 


<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] to make net_big_sklist_lock static, David C. Hansen <=