summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorhunt <hunt>2005-06-23 07:44:27 +0000
committerhunt <hunt>2005-06-23 07:44:27 +0000
commitd65ab084c857ff87e5ed77742cd8e58b3bc03814 (patch)
treecaeef3c129deb2c373db65e05309916f28b677b3 /runtime
parent646c2bc0342790d77754fb1eab4dd0e473664ca2 (diff)
downloadsystemtap-steved-d65ab084c857ff87e5ed77742cd8e58b3bc03814.tar.gz
systemtap-steved-d65ab084c857ff87e5ed77742cd8e58b3bc03814.tar.xz
systemtap-steved-d65ab084c857ff87e5ed77742cd8e58b3bc03814.zip
2005-06-23 Martin Hunt <hunt@redhat.com>
* control.c: Replace macro DEFINE_SPINLOCK because some kernels don't have it.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/transport/ChangeLog5
-rw-r--r--runtime/transport/control.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/runtime/transport/ChangeLog b/runtime/transport/ChangeLog
index 72a6e7ae..f4dff716 100644
--- a/runtime/transport/ChangeLog
+++ b/runtime/transport/ChangeLog
@@ -1,3 +1,8 @@
+2005-06-23 Martin Hunt <hunt@redhat.com>
+
+ * control.c: Replace macro DEFINE_SPINLOCK because
+ some kernels don't have it.
+
2005-06-20 Tom Zanussi <zanussi@us.ibm.com>
* control.h: Added STP_TRANSPORT_MODE command.
diff --git a/runtime/transport/control.c b/runtime/transport/control.c
index 1699f54d..23e99400 100644
--- a/runtime/transport/control.c
+++ b/runtime/transport/control.c
@@ -40,7 +40,7 @@ struct sock *stp_control;
static struct hlist_head *handlers;
/* protection for the handlers table */
-static DEFINE_SPINLOCK(handlers_lock);
+static spinlock_t handlers_lock = SPIN_LOCK_UNLOCKED;
/**
* _stp_lookup_handler - look up the command handler in the handlers table