Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 10167
b: refs/heads/master
c: b7c8921
h: refs/heads/master
i:
  10165: a83dfa3
  10163: 3e3e218
  10159: dcc8311
v: v3
  • Loading branch information
Stephen Hemminger authored and Arnaldo Carvalho de Melo committed Oct 26, 2005
1 parent 5505194 commit 08ad6aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 670c02c2bfd2c8a305a90f5285409a7b0a8fd630
refs/heads/master: b7c8921bf1a8a9c1907b1eeb029d3f167be226f3
6 changes: 3 additions & 3 deletions trunk/net/core/pktgen.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@
#define T_REMDEV (1<<3) /* Remove all devs */

/* Locks */
#define thread_lock() spin_lock(&_thread_lock)
#define thread_unlock() spin_unlock(&_thread_lock)
#define thread_lock() down(&pktgen_sem)
#define thread_unlock() up(&pktgen_sem)

/* If lock -- can be removed after some work */
#define if_lock(t) spin_lock(&(t->if_lock));
Expand Down Expand Up @@ -503,7 +503,7 @@ static int pg_delay_d = 0;
static int pg_clone_skb_d = 0;
static int debug = 0;

static DEFINE_SPINLOCK(_thread_lock);
static DECLARE_MUTEX(pktgen_sem);
static struct pktgen_thread *pktgen_threads = NULL;

static char module_fname[128];
Expand Down

0 comments on commit 08ad6aa

Please sign in to comment.