]> sourceware.org Git - systemtap.git/commitdiff
2008-01-28 Martin Hunt <hunt@redhat.com>
authorhunt <hunt>
Mon, 28 Jan 2008 19:20:48 +0000 (19:20 +0000)
committerhunt <hunt>
Mon, 28 Jan 2008 19:20:48 +0000 (19:20 +0000)
* control.c, procfs.c, symbols.c: Use DEFINE_SPINLOCK

runtime/transport/ChangeLog
runtime/transport/control.c
runtime/transport/procfs.c
runtime/transport/symbols.c

index e7bbabd8cb9f386a45289b08b4958487a7a2427c..764e3579cbfe88c084d479082a0627d10978645c 100644 (file)
@@ -1,3 +1,7 @@
+2008-01-28  Martin Hunt  <hunt@redhat.com>
+
+       * control.c, procfs.c, symbols.c: Use DEFINE_SPINLOCK
+
 2008-01-15  Martin Hunt  <hunt@redhat.com>
            
        PR4037 and fixes to better synchronize staprun and stapio.
index 3179f507ed4d09ad4d07b5f712c8c53e9f52519d..0bf99fc89f75af38be6d71484ab6331918c0c3f4 100644 (file)
@@ -1,7 +1,7 @@
 /* -*- linux-c -*-
  *
  * debugfs control channel
- * Copyright (C) 2007 Red Hat Inc.
+ * Copyright (C) 2007-2008 Red Hat Inc.
  *
  * This file is part of systemtap, and is free software.  You can
  * redistribute it and/or modify it under the terms of the GNU General
@@ -15,9 +15,9 @@ static int _stp_current_buffers = STP_DEFAULT_BUFFERS;
 static struct list_head _stp_ctl_ready_q;
 static struct list_head _stp_sym_ready_q;
 static struct list_head _stp_pool_q;
-spinlock_t _stp_pool_lock = SPIN_LOCK_UNLOCKED;
-spinlock_t _stp_ctl_ready_lock = SPIN_LOCK_UNLOCKED;
-spinlock_t _stp_sym_ready_lock = SPIN_LOCK_UNLOCKED;
+DEFINE_SPINLOCK(_stp_pool_lock);
+DEFINE_SPINLOCK(_stp_ctl_ready_lock);
+DEFINE_SPINLOCK(_stp_sym_ready_lock);
 
 static ssize_t _stp_sym_write_cmd (struct file *file, const char __user *buf,
                                    size_t count, loff_t *ppos)
index 85e97d153217ad989f708e8ad25c7e760c2eba05..33f6db336e0a1a04303e407e6fd709c3224cbf82 100644 (file)
@@ -15,9 +15,9 @@ static int _stp_current_buffers = STP_DEFAULT_BUFFERS;
 static struct list_head _stp_ctl_ready_q;
 static struct list_head _stp_sym_ready_q;
 static struct list_head _stp_pool_q;
-spinlock_t _stp_pool_lock = SPIN_LOCK_UNLOCKED;
-spinlock_t _stp_ctl_ready_lock = SPIN_LOCK_UNLOCKED;
-spinlock_t _stp_sym_ready_lock = SPIN_LOCK_UNLOCKED;
+DEFINE_SPINLOCK(_stp_pool_lock);
+DEFINE_SPINLOCK(_stp_ctl_ready_lock);
+DEFINE_SPINLOCK(_stp_sym_ready_lock);
 
 #ifdef STP_BULKMODE
 extern int _stp_relay_flushing;
index dde0f967e9f164757a0ec4fbbd1ce46da7251a38..e740dde8ac3b0cdb41ba25656cc9b648a27fc509 100644 (file)
@@ -16,7 +16,7 @@
 #define _SYMBOLS_C_
 #include "../sym.h"
 
-spinlock_t _stp_module_lock = SPIN_LOCK_UNLOCKED;
+DEFINE_SPINLOCK(_stp_module_lock);
 #define STP_TRYLOCK_MODULES  ({                                                \
                int numtrylock = 0;                                     \
                while (!spin_trylock_irqsave (&_stp_module_lock, flags) && (++numtrylock < MAXTRYLOCK)) \
This page took 0.032492 seconds and 5 git commands to generate.