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)
commit57f4257eae33e036125973858934730250d464e3
treef8011cdf5b2e77abb4c721221793d40ed24985a7
parentea1e7ed33708c7a760419ff9ded0a6cb90586a50
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