Commit 19d8a8b9 authored by Sebastian Andrzej Siewior's avatar Sebastian Andrzej Siewior Committed by Zheng Zengkai
Browse files

powerpc/imc-pmu: Use the correct spinlock initializer.

stable inclusion
from stable-v6.6.2
commit c3ff87e536d66cb285f4ddffd1cf28b3ef5024fc
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8IW7G

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=c3ff87e536d66cb285f4ddffd1cf28b3ef5024fc



--------------------------------

[ 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: 76d588dd ("powerpc/imc-pmu: Fix use of mutex in IRQs disabled section")
Signed-off-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230309134831.Nz12nqsU@linutronix.de


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 998f90e4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment