summaryrefslogtreecommitdiffstats
path: root/runtime/alloc.c
diff options
context:
space:
mode:
authorhunt <hunt>2008-01-28 19:22:51 +0000
committerhunt <hunt>2008-01-28 19:22:51 +0000
commit395d6cf1121410e4795193ee42fb1890d1695907 (patch)
treec460748a18bc518a9badc50eaffa96de874bc157 /runtime/alloc.c
parenta2fac8e8d1899b7e12b98fbc83639d321f3f182e (diff)
downloadsystemtap-steved-395d6cf1121410e4795193ee42fb1890d1695907.tar.gz
systemtap-steved-395d6cf1121410e4795193ee42fb1890d1695907.tar.xz
systemtap-steved-395d6cf1121410e4795193ee42fb1890d1695907.zip
2008-01-28 Martin Hunt <hunt@redhat.com>
* alloc.c: Use DEFINE_SPINLOCK. * counter.c: Ditto. * pmap-gen.c: Ditto. * print_new.c: Ditto. * stat.c: Ditto.
Diffstat (limited to 'runtime/alloc.c')
-rw-r--r--runtime/alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/alloc.c b/runtime/alloc.c
index f022755a..674a340d 100644
--- a/runtime/alloc.c
+++ b/runtime/alloc.c
@@ -32,7 +32,7 @@ static int _stp_allocated_net_memory = 0;
#ifdef DEBUG_MEM
-static spinlock_t _stp_mem_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(_stp_mem_lock);
static int _stp_allocated_memory = 0;
#define MEM_MAGIC 0xc11cf77f