summaryrefslogtreecommitdiffstats
path: root/runtime/transport/control.c
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2008-02-15 14:29:08 -0500
committerFrank Ch. Eigler <fche@elastic.org>2008-02-15 14:29:08 -0500
commit0f05501579dc0a4e66ccbbd8e0b29d052d9b5920 (patch)
tree79bf8b7b328e87e8c30cc64e64a1bea9a6f2dca5 /runtime/transport/control.c
parent044427bcdfa2a1d58a912bf96546892bef82b717 (diff)
parent275f40a6d612f94e5272eeed772e9c9294cb8e1f (diff)
downloadsystemtap-steved-0f05501579dc0a4e66ccbbd8e0b29d052d9b5920.tar.gz
systemtap-steved-0f05501579dc0a4e66ccbbd8e0b29d052d9b5920.tar.xz
systemtap-steved-0f05501579dc0a4e66ccbbd8e0b29d052d9b5920.zip
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'runtime/transport/control.c')
-rw-r--r--runtime/transport/control.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/transport/control.c b/runtime/transport/control.c
index 3179f507..0bf99fc8 100644
--- a/runtime/transport/control.c
+++ b/runtime/transport/control.c
@@ -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)