diff options
author | hunt <hunt> | 2008-01-28 19:22:51 +0000 |
---|---|---|
committer | hunt <hunt> | 2008-01-28 19:22:51 +0000 |
commit | 395d6cf1121410e4795193ee42fb1890d1695907 (patch) | |
tree | c460748a18bc518a9badc50eaffa96de874bc157 /runtime/stat.c | |
parent | a2fac8e8d1899b7e12b98fbc83639d321f3f182e (diff) | |
download | systemtap-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/stat.c')
-rw-r--r-- | runtime/stat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/stat.c b/runtime/stat.c index 298a6653..f8b5f018 100644 --- a/runtime/stat.c +++ b/runtime/stat.c @@ -1,6 +1,6 @@ /* -*- linux-c -*- * Statistics Aggregation - * Copyright (C) 2005, 2007 Red Hat Inc. + * Copyright (C) 2005-2008 Red Hat Inc. * Copyright (C) 2006 Intel Corporation * * This file is part of systemtap, and is free software. You can @@ -111,7 +111,7 @@ Stat _stp_stat_init (int type, ...) int i; for_each_cpu(i) { stat *sdp = per_cpu_ptr (sd, i); - sdp->lock = SPIN_LOCK_UNLOCKED; + spin_lock_init(sdp->lock); } } #endif |