summaryrefslogtreecommitdiffstats
path: root/runtime/counter.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/counter.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/counter.c')
-rw-r--r--runtime/counter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/counter.c b/runtime/counter.c
index 42555dfa..d0376547 100644
--- a/runtime/counter.c
+++ b/runtime/counter.c
@@ -1,6 +1,6 @@
/* -*- linux-c -*-
* Counter aggregation Functions
- * Copyright (C) 2005 Red Hat Inc.
+ * Copyright (C) 2005-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
@@ -60,7 +60,7 @@ Counter _stp_counter_init (void)
int i;
for_each_cpu(i) {
Counter c = per_cpu_ptr (cnt, i);
- c->lock = SPIN_LOCK_UNLOCKED;
+ spin_lock_init(c->lock);
}
}
#endif