diff options
author | Will Deacon <will.deacon@arm.com> | 2014-03-14 17:47:05 +0000 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-05-21 18:58:47 +0100 |
commit | af6b38abb48ee39ae743dcbd0c3425af0bbaa2ee (patch) | |
tree | ce09c4e121656981316dd1fea07da1253f3ae089 /arch/arm64/Kconfig | |
parent | 83a6783cbe03e736f3c66e1d1de2a0d360e82821 (diff) |
arm64: rwsem: use asm-generic rwsem implementation
asm-generic offers an atomic-add based rwsem implementation, which
can avoid the need for heavier, spinlock-based synchronisation on the
fast path.
This patch makes use of the optimised implementation for arm64 CPUs.
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
(cherry picked from commit c209f79940ac0c75ae8d2f503a2b9d86255e266c)
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'arch/arm64/Kconfig')
-rw-r--r-- | arch/arm64/Kconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index d5b813ed86a1..8efcec96de72 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -69,7 +69,7 @@ config LOCKDEP_SUPPORT config TRACE_IRQFLAGS_SUPPORT def_bool y -config RWSEM_GENERIC_SPINLOCK +config RWSEM_XCHGADD_ALGORITHM def_bool y config GENERIC_HWEIGHT |