linux-hardened/arch/metag
Will Deacon a8a217c221 locking/core: Remove {read,spin,write}_can_lock()
Outside of the locking code itself, {read,spin,write}_can_lock() have no
users in tree. Apparmor (the last remaining user of write_can_lock()) got
moved over to lockdep by the previous patch.

This patch removes the use of {read,spin,write}_can_lock() from the
BUILD_LOCK_OPS macro, deferring to the trylock operation for testing the
lock status, and subsequently removes the unused macros altogether. They
aren't guaranteed to work in a concurrent environment and can give
incorrect results in the case of qrwlock.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: paulmck@linux.vnet.ibm.com
Link: http://lkml.kernel.org/r/1507055129-12300-2-git-send-email-will.deacon@arm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2017-10-10 11:50:18 +02:00
..
boot devicetree: Move include prefixes from arch to separate directory 2017-05-18 23:55:48 -07:00
configs metag: minimal TZ1090 (Comet) SoC infrastructure 2013-06-13 12:14:07 +01:00
include locking/core: Remove {read,spin,write}_can_lock() 2017-10-10 11:50:18 +02:00
kernel metag: Adjust system_state check 2017-05-23 10:01:35 +02:00
lib metag: Changes for 4.12 2017-05-10 11:40:36 -07:00
mm mm/hugetlb: add size parameter to huge_pte_offset() 2017-07-06 16:24:34 -07:00
oprofile metag: OProfile support 2013-03-15 13:21:05 +00:00
tbx metag: Fix misspellings in comments. 2016-04-18 12:45:54 +02:00
Kconfig irqchip/metag-ext: Report that effective affinity is a single target 2017-08-18 10:54:42 +02:00
Kconfig.debug consolidate per-arch stack overflow debugging options 2013-07-04 11:25:39 -07:00
Kconfig.soc metag: remove ARCH_WANT_OPTIONAL_GPIOLIB 2016-04-26 13:39:22 +02:00
Makefile metag: use common make variables for dtb builds 2015-10-27 16:12:15 -05:00