android_kernel_xiaomi_sm7250/arch/powerpc
Waiman Long 72ed1d5634 BACKPORT: locking/rwsem: Remove rwsem-spinlock.c & use rwsem-xadd.c for all archs
Currently, we have two different implementation of rwsem:

 1) CONFIG_RWSEM_GENERIC_SPINLOCK (rwsem-spinlock.c)
 2) CONFIG_RWSEM_XCHGADD_ALGORITHM (rwsem-xadd.c)

As we are going to use a single generic implementation for rwsem-xadd.c
and no architecture-specific code will be needed, there is no point
in keeping two different implementations of rwsem. In most cases, the
performance of rwsem-spinlock.c will be worse. It also doesn't get all
the performance tuning and optimizations that had been implemented in
rwsem-xadd.c over the years.

For simplication, we are going to remove rwsem-spinlock.c and make all
architectures use a single implementation of rwsem - rwsem-xadd.c.

All references to RWSEM_GENERIC_SPINLOCK and RWSEM_XCHGADD_ALGORITHM
in the code are removed.

Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Tim Chen <tim.c.chen@linux.intel.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-c6x-dev@linux-c6x.org
Cc: linux-m68k@lists.linux-m68k.org
Cc: linux-riscv@lists.infradead.org
Cc: linux-um@lists.infradead.org
Cc: linux-xtensa@linux-xtensa.org
Cc: linuxppc-dev@lists.ozlabs.org
Cc: nios2-dev@lists.rocketboards.org
Cc: openrisc@lists.librecores.org
Cc: uclinux-h8-devel@lists.sourceforge.jp
Link: https://lkml.kernel.org/r/20190322143008.21313-3-longman@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Change-Id: I8a94de8b29db44da529ccbb90dc591efa06906c7
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2022-11-12 11:23:32 +00:00
..
boot powerpc: Fix SPE Power ISA properties for e500v1 platforms 2022-10-26 13:19:35 +02:00
configs vgacon: remove software scrollback support 2020-09-17 13:45:29 +02:00
crypto powerpc updates for 4.19 2018-08-17 11:32:50 -07:00
include BACKPORT: locking/rwsem: Remove arch specific rwsem files 2022-11-12 11:23:32 +00:00
kernel powerpc/pci_dn: Add missing of_node_put() 2022-10-26 13:19:34 +02:00
kvm This is the 4.19.238 stable release 2022-04-18 09:57:50 +02:00
lib UPSTREAM: lib/xor: make xor prototypes more friendly to compiler vectorization 2022-11-12 11:22:30 +00:00
math-emu powerpc/math_emu/efp: Include module.h 2022-10-26 13:19:34 +02:00
mm BACKPORT: pagewalk: separate function pointers from iterator data 2022-11-12 11:23:09 +00:00
net powerpc/bpf: Emit stf barrier instruction sequences for BPF_NOSPEC 2021-11-26 11:36:17 +01:00
oprofile treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
perf This is the 4.19.247 stable release 2022-06-14 17:16:36 +02:00
platforms This is the 4.19.262 stable release 2022-10-30 16:23:17 +01:00
purgatory powerpc updates for 4.19 2018-08-17 11:32:50 -07:00
sysdev powerpc/sysdev/fsl_msi: Add missing of_node_put() 2022-10-26 13:19:34 +02:00
tools powerpc/tools: Don't quote $objdump in scripts 2020-01-04 19:12:42 +01:00
xmon powerpc/xmon: Change printk() to pr_cont() 2020-12-30 11:26:12 +01:00
Kconfig BACKPORT: locking/rwsem: Remove rwsem-spinlock.c & use rwsem-xadd.c for all archs 2022-11-12 11:23:32 +00:00
Kconfig.debug powerpc: iommu: fix build when neither PCI or IBMVIO is set 2021-05-22 10:59:35 +02:00
Makefile mass revert: clean 2022-11-12 11:18:57 +00:00
Makefile.postlink License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00