ARM: Don't enable GENERIC_LOCKBREAK with ticket spinlocks
PATCH 1/1 ARM: Don't enable GENERIC_LOCKBREAK with ticket spinlocks
Now that ARM has implemented its spinlocks with tickets we don't need to use the generic lockbreak algorithm. Remove the Kconfig from ARM so that we use the arch_spin_is_contended() definition from the asm header. This also saves a word in each lock because we don't need the break_lock member anymore.
---
It seems we define the arch_spin_is_contended() macro but we don't use it on SMP && PREEMPT kernels?
arch/arm/Kconfig | 5 ----- 1 file changed, 5 deletions(-)
arch/arm/Kconfig +0 -5
@@ -126,11 +126,6 @@ config TRACE_IRQFLAGS_SUPPORT bool default y -config GENERIC_LOCKBREAK - bool - default y - depends on SMP && PREEMPT - config RWSEM_GENERIC_SPINLOCK bool default y
Signature · 2 lines
Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
Quoted 11 lines · Stephen Boyd
Now that ARM has implemented its spinlocks with tickets we don't need to use the generic lockbreak algorithm. Remove the
Kconfigfrom ARM so that we use thearch_spin_is_contended()definition from the asm header. This also saves a word in each lock because we don't need thebreak_lockmember anymore.Signed-off-by Stephen Boyd <[email protected]>---
It seems we define the
arch_spin_is_contended()macro but we don't use it on SMP && PREEMPT kernels?
Thanks, I missed that.
Will