android_kernel_xiaomi_sm7250/arch/m68k
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
..
68000 m68k: Fix off-by-one calendar month 2018-05-22 10:31:50 +02:00
amiga m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:51:23 +01:00
apollo m68k: Remove unused set_clock_mmss() helpers 2018-07-29 10:48:18 +02:00
atari m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:51:23 +01:00
bvme6000 m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:51:23 +01:00
coldfire m68k/PCI: Fix a memory leak in an error handling path 2020-06-25 15:32:50 +02:00
configs scsi: sr: remove references to BLK_DEV_SR_VENDOR, leave it enabled 2020-07-22 09:32:04 +02:00
emu m68k: emu: Fix invalid free in nfeth_cleanup() 2021-09-22 11:47:50 +02:00
fpsp040 License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hp300 m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:51:23 +01:00
ifpsp060 scripts/spelling.txt: add regsiter -> register spelling mistake 2017-05-08 17:15:13 -07:00
include BACKPORT: arch/tlb: Clean up simple architectures 2022-11-12 11:23:05 +00:00
kernel m68k: Handle arrivals of multiple signals correctly 2021-10-17 10:19:49 +02:00
lib License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mac m68k: mac: Fix IOP status/control register writes 2020-08-19 08:14:49 +02:00
math-emu m68k: Assorted spelling fixes 2016-07-03 14:05:28 +02:00
mm mm/vma: append unlikely() while testing VMA access permissions 2022-11-12 11:21:22 +00:00
mvme16x m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:51:23 +01:00
mvme147 m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:51:23 +01:00
q40 m68k: q40: Fix info-leak in rtc_ioctl 2020-10-01 13:14:24 +02:00
sun3 m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:51:23 +01:00
sun3x m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:51:23 +01:00
tools/amiga License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
install.sh kbuild: use INSTALLKERNEL to select customized installkernel script 2009-09-20 12:18:14 +02: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.bus m68k: allow ColdFire PCI bus on MMU and non-MMU configuration 2018-05-28 09:45:27 +10:00
Kconfig.cpu m68k: math-emu: Fix dependencies of math emulation support 2022-06-14 16:59:22 +02:00
Kconfig.debug Kconfig: consolidate the "Kernel hacking" menu 2018-08-02 08:06:48 +09:00
Kconfig.devices License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Kconfig.machine m68knommu: fix undefined reference to `_init_sp' 2022-06-14 16:59:34 +02:00
Makefile m68k: Add -ffreestanding to CFLAGS 2019-03-23 20:10:00 +01:00