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/print_new.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/print_new.c')
-rw-r--r-- | runtime/print_new.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/print_new.c b/runtime/print_new.c index 95a83a8d..75bbd82b 100644 --- a/runtime/print_new.c +++ b/runtime/print_new.c @@ -1,6 +1,6 @@ /* -*- linux-c -*- * Print Flush Function - * 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,7 +15,8 @@ * * @note Preemption must be disabled to use this. */ -spinlock_t _stp_print_lock = SPIN_LOCK_UNLOCKED; + +DEFINE_SPINLOCK(_stp_print_lock); void EXPORT_FN(stp_print_flush) (_stp_pbuf *pb) { |