android_kernel_xiaomi_sm7250/arch/mips
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
..
alchemy MIPS: alchemy: xxs1500: add gpio-au1000.h header file 2021-06-03 08:38:12 +02:00
ar7
ath25
ath79
bcm47xx MIPS: BCM47XX: Cast memcmp() of function to (void *) 2022-10-26 13:19:36 +02:00
bcm63xx mips: bcm63xx: add support for clk_set_parent() 2022-01-27 09:04:23 +01:00
bmips MIPS: Use address-of operator on section symbols 2022-05-15 19:41:57 +02:00
boot mips: disable branch profiling in boot/decompress.o 2021-07-20 16:16:15 +02:00
cavium-octeon MIPS: OCTEON: irq: Fix octeon_irq_force_ciu_mapping() 2022-09-28 11:02:53 +02:00
cobalt
configs
crypto UPSTREAM: crypto: mips: add poly1305-core.S to .gitignore 2022-11-12 11:22:32 +00:00
dec DEC: Limit PMAX memory probing to R3k systems 2022-04-15 14:14:42 +02:00
emma
fw
generic MIPS: fix allmodconfig build with latest mkimage 2022-05-18 09:42:50 +02:00
include BACKPORT: mm: introduce MADV_PAGEOUT 2022-11-12 11:23:09 +00:00
jazz
jz4740
kernel Merge 4cb392956a ("MIPS: cpuinfo: Fix a warning for CONFIG_CPUMASK_OFFSTACK") into android-mainline 2022-09-07 09:20:10 +02:00
kvm
lantiq MIPS: lantiq: export clk_get_io() for lantiq_wdt.ko 2022-09-28 11:02:56 +02:00
lasat
lib MIPS: Fix kernel hang under FUNCTION_GRAPH_TRACER and PREEMPT_TRACER 2021-06-16 11:54:58 +02:00
loongson32 MIPS: loongson32: ls1c: Fix hang during startup 2022-09-15 12:17:06 +02:00
loongson64
math-emu
mm mm/vma: append unlikely() while testing VMA access permissions 2022-11-12 11:21:22 +00:00
mti-malta MIPS: Malta: fix alignment of the devicetree buffer 2021-09-22 11:48:02 +02:00
net bpf, mips: Validate conditional branch offsets 2021-10-13 10:10:51 +02:00
netlogic
oprofile
paravirt
pci MIPS: pci-legacy: stop using of_pci_range_to_resource 2021-05-22 10:59:37 +02:00
pic32 MIPS: Use address-of operator on section symbols 2022-05-15 19:41:57 +02:00
pistachio
pmcs-msp71xx
pnx833x mass revert: clean 2022-11-12 11:18:57 +00:00
power
ralink MIPS: Use address-of operator on section symbols 2022-05-15 19:41:57 +02:00
rb532 MIPS: RB532: fix return value of __setup handler 2022-04-15 14:14:50 +02:00
sgi-ip22
sgi-ip27
sgi-ip32
sibyte
sni MIPS: sni: Fix the build 2021-11-26 11:36:20 +01:00
tools
txx9
vdso MIPS: vdso: Invalid GIC access through VDSO 2021-07-20 16:16:15 +02:00
vr41xx MIPS: Remove repetitive increase irq_err_count 2022-07-02 16:27:33 +02:00
Kbuild
Kbuild.platforms
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
Makefile mass revert: clean 2022-11-12 11:18:57 +00:00
Makefile.postlink