Files
android_kernel_xiaomi_sm8450/arch/m32r/include/asm
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
..
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2014-04-18 14:20:36 +02:00
2017-02-22 16:41:27 -08:00
2017-06-20 11:13:03 +02:00
2013-02-26 02:46:08 -05:00
2013-11-13 20:21:46 +01:00
2015-12-29 17:45:49 -08:00
2010-10-07 14:08:55 +01:00
2010-06-09 11:12:36 +02:00
2012-03-28 18:30:02 +01:00
2009-06-11 21:02:22 +02:00
2012-06-05 17:32:30 +02:00
2012-03-28 18:30:02 +01:00
2017-05-27 15:38:02 -04:00