This repository has been archived on 2026-03-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
ubports_kernel_google_msm/arch/arm/include/asm
Will Deacon 0e0ea02b6a ARM: 7495/1: mutex: use generic atomic_dec-based implementation for ARMv6+
Commit a76d7bd96d65 ("ARM: 7467/1: mutex: use generic xchg-based
implementation for ARMv6+") removed the barrier-less, ARM-specific
mutex implementation in favour of the generic xchg-based code.

Since then, a bug was uncovered in the xchg code when running on SMP
platforms, due to interactions between the locking paths and the
MUTEX_SPIN_ON_OWNER code. This was fixed in 0bce9c46bf3b ("mutex: place
lock in contended state after fastpath_lock failure"), however, the
atomic_dec-based mutex algorithm is now marginally more efficient for
ARM (~0.5% improvement in hackbench scores on dual A15).

This patch moves ARMv6+ platforms to the atomic_dec-based mutex code.

Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2013-03-15 17:09:41 -07:00
..
2012-03-28 18:30:01 +01:00
2012-04-03 10:59:10 -07:00
2012-03-28 18:30:01 +01:00
2012-03-28 18:30:01 +01:00
2012-03-28 18:30:01 +01:00
2012-03-28 18:30:01 +01:00
2012-03-28 18:30:01 +01:00
2012-03-28 18:30:01 +01:00
2012-03-28 18:30:01 +01:00
2012-03-28 18:30:01 +01:00
2012-04-09 13:57:51 -07:00
2012-03-20 21:48:30 +08:00
2012-03-28 18:30:01 +01:00
2012-02-23 20:19:04 -07:00
2012-02-14 12:01:28 -08:00
2012-03-24 09:38:54 +00:00
2013-02-20 02:50:14 -08:00
2012-03-28 18:30:01 +01:00
2012-03-28 18:30:01 +01:00
2013-02-20 02:48:50 -08:00
2012-01-03 22:55:17 -05:00
2012-03-28 18:30:01 +01:00
2012-01-16 08:56:25 -06:00