]> err.no Git - linux-2.6/blobdiff - net/core/pktgen.c
[PATCH] cpuset semaphore depth check optimize
[linux-2.6] / net / core / pktgen.c
index 975d651312dc36787edb05be5596471f1f8bbfee..b3ad49fa7d787ad7d8a01feb7a1a62f3faaa0bd9 100644 (file)
@@ -363,7 +363,7 @@ struct pktgen_thread {
  * All Rights Reserved.
  *
  */
-inline static s64 divremdi3(s64 x, s64 y, int type) 
+static inline s64 divremdi3(s64 x, s64 y, int type)
 {
         u64 a = (x < 0) ? -x : x;
         u64 b = (y < 0) ? -y : y;
@@ -503,7 +503,7 @@ static int pg_delay_d = 0;
 static int pg_clone_skb_d = 0;
 static int debug = 0;
 
-static spinlock_t _thread_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(_thread_lock);
 static struct pktgen_thread *pktgen_threads = NULL;
 
 static char module_fname[128];