]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
powerpc/imc-pmu: Use the correct spinlock initializer.
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Thu, 9 Mar 2023 13:48:31 +0000 (14:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Nov 2023 09:30:14 +0000 (10:30 +0100)
commitcee681d4b22b3582b64bf90374f93a5cbde85f2b
treebb517cc075cfb6cf631ef79d4d85f92947916156
parentdc5804b47b661f114cc1c2c26bed0b0c0e19d1d5
powerpc/imc-pmu: Use the correct spinlock initializer.

[ Upstream commit 007240d59c11f87ac4f6cfc6a1d116630b6b634c ]

The macro __SPIN_LOCK_INITIALIZER() is implementation specific. Users
that desire to initialize a spinlock in a struct must use
__SPIN_LOCK_UNLOCKED().

Use __SPIN_LOCK_UNLOCKED() for the spinlock_t in imc_global_refc.

Fixes: 76d588dddc459 ("powerpc/imc-pmu: Fix use of mutex in IRQs disabled section")
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230309134831.Nz12nqsU@linutronix.de
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/perf/imc-pmu.c