Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 22248
b: refs/heads/master
c: 222fa07
h: refs/heads/master
v: v3
  • Loading branch information
Luiz Capitulino authored and David S. Miller committed Mar 21, 2006
1 parent 8e9c0ee commit 0d378f4
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 6756ae4b4e97aba48c042b4aa6b77a18f507d2cb
refs/heads/master: 222fa076652cc1faf56eb7d554c2797ace3c5beb
7 changes: 4 additions & 3 deletions trunk/net/core/pktgen.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
#include <linux/moduleparam.h>
#include <linux/kernel.h>
#include <linux/smp_lock.h>
#include <linux/mutex.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/vmalloc.h>
Expand Down Expand Up @@ -180,8 +181,8 @@
#define T_REMDEV (1<<4) /* Remove one dev */

/* Locks */
#define thread_lock() down(&pktgen_sem)
#define thread_unlock() up(&pktgen_sem)
#define thread_lock() mutex_lock(&pktgen_thread_lock)
#define thread_unlock() mutex_unlock(&pktgen_thread_lock)

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

static DECLARE_MUTEX(pktgen_sem);
static DEFINE_MUTEX(pktgen_thread_lock);
static LIST_HEAD(pktgen_threads);

static struct notifier_block pktgen_notifier_block = {
Expand Down

0 comments on commit 0d378f4

Please sign in to comment.