diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2007-04-29 12:10:39 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-04-29 21:02:06 -0400 |
commit | 057b184a007376562e905aa39f1ba352fb8d78b1 (patch) | |
tree | f7cd89d7ac5bbcab57ecfa097004c030565718c7 /arch/powerpc/oprofile | |
parent | f139efedb8d34904cf8ea30b174c3ee57204d114 (diff) |
[POWERPC] Spinlock initializer cleanup
Use DEFINE_SPINLOCK instead of initializing spinlocks to
SPIN_LOCK_UNLOCKED, since DEFINE_SPINLOCK is better for lockdep.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/oprofile')
-rw-r--r-- | arch/powerpc/oprofile/op_model_cell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/oprofile/op_model_cell.c b/arch/powerpc/oprofile/op_model_cell.c index fb999e3e9f21..626b29f38304 100644 --- a/arch/powerpc/oprofile/op_model_cell.c +++ b/arch/powerpc/oprofile/op_model_cell.c | |||
@@ -131,7 +131,7 @@ static int pm_rtas_token; | |||
131 | static u32 reset_value[NR_PHYS_CTRS]; | 131 | static u32 reset_value[NR_PHYS_CTRS]; |
132 | static int num_counters; | 132 | static int num_counters; |
133 | static int oprofile_running; | 133 | static int oprofile_running; |
134 | static spinlock_t virt_cntr_lock = SPIN_LOCK_UNLOCKED; | 134 | static DEFINE_SPINLOCK(virt_cntr_lock); |
135 | 135 | ||
136 | static u32 ctr_enabled; | 136 | static u32 ctr_enabled; |
137 | 137 | ||