]> git.baikalelectronics.ru Git - kernel.git/commit
lockref: use BLOATED_SPINLOCKS to avoid explicit config dependencies
authorPeter Zijlstra <peterz@infradead.org>
Thu, 14 Nov 2013 22:31:54 +0000 (14:31 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 15 Nov 2013 00:32:20 +0000 (09:32 +0900)
commit8ba2a383a37a78f0aeffd84fd2ba0a947d638032
treef8011cdf5b2e77abb4c721221793d40ed24985a7
parent91f187390151629088fd52b231fe1c45bd807701
lockref: use BLOATED_SPINLOCKS to avoid explicit config dependencies

Avoid the fragile Kconfig construct guestimating spinlock_t sizes; use a
friendly compile-time test to determine this.

[kirill.shutemov@linux.intel.com: drop CONFIG_CMPXCHG_LOCKREF]
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/lockref.h
lib/Kconfig
lib/lockref.c