Re: [PATCH] powerpc/imc-pmu: Use the correct spinlock initializer.

2023-10-27 Thread Michael Ellerman
On Thu, 09 Mar 2023 14:48:31 +0100, Sebastian Andrzej Siewior wrote: > 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. >

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

2023-03-09 Thread Sebastian Andrzej Siewior
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 sect