2009-11-09 23:21:34 +08:00
|
|
|
#
|
|
|
|
# The ARCH_INLINE foo is necessary because select ignores "depends on"
|
|
|
|
#
|
|
|
|
config ARCH_INLINE_SPIN_TRYLOCK
|
|
|
|
bool
|
|
|
|
|
|
|
|
config ARCH_INLINE_SPIN_TRYLOCK_BH
|
|
|
|
bool
|
|
|
|
|
|
|
|
config ARCH_INLINE_SPIN_LOCK
|
|
|
|
bool
|
|
|
|
|
|
|
|
config ARCH_INLINE_SPIN_LOCK_BH
|
|
|
|
bool
|
|
|
|
|
|
|
|
config ARCH_INLINE_SPIN_LOCK_IRQ
|
|
|
|
bool
|
|
|
|
|
|
|
|
config ARCH_INLINE_SPIN_LOCK_IRQSAVE
|
|
|
|
bool
|
|
|
|
|
|
|
|
config ARCH_INLINE_SPIN_UNLOCK
|
|
|
|
bool
|
|
|
|
|
|
|
|
config ARCH_INLINE_SPIN_UNLOCK_BH
|
|
|
|
bool
|
|
|
|
|
|
|
|
config ARCH_INLINE_SPIN_UNLOCK_IRQ
|
|
|
|
bool
|
|
|
|
|
|
|
|
config ARCH_INLINE_SPIN_UNLOCK_IRQRESTORE
|
|
|
|
bool
|
|
|
|
|
|
|
|
|
|
|
|
config ARCH_INLINE_READ_TRYLOCK
|
|
|
|
bool
|
|
|
|
|
|
|
|
config ARCH_INLINE_READ_LOCK
|
|
|
|
bool
|
|
|
|
|
|
|
|
config ARCH_INLINE_READ_LOCK_BH
|
|
|
|
bool
|
|
|
|
|
|
|
|
config ARCH_INLINE_READ_LOCK_IRQ
|
|
|
|
bool
|
|
|
|
|
|
|
|
config ARCH_INLINE_READ_LOCK_IRQSAVE
|
|
|
|
bool
|
|
|
|
|
|
|
|
config ARCH_INLINE_READ_UNLOCK
|
|
|
|
bool
|
|
|
|
|
|
|
|
config ARCH_INLINE_READ_UNLOCK_BH
|
|
|
|
bool
|
|
|
|
|
|
|
|
config ARCH_INLINE_READ_UNLOCK_IRQ
|
|
|
|
bool
|
|
|
|
|
|
|
|
config ARCH_INLINE_READ_UNLOCK_IRQRESTORE
|
|
|
|
bool
|
|
|
|
|
|
|
|
|
|
|
|
config ARCH_INLINE_WRITE_TRYLOCK
|
|
|
|
bool
|
|
|
|
|
|
|
|
config ARCH_INLINE_WRITE_LOCK
|
|
|
|
bool
|
|
|
|
|
|
|
|
config ARCH_INLINE_WRITE_LOCK_BH
|
|
|
|
bool
|
|
|
|
|
|
|
|
config ARCH_INLINE_WRITE_LOCK_IRQ
|
|
|
|
bool
|
|
|
|
|
|
|
|
config ARCH_INLINE_WRITE_LOCK_IRQSAVE
|
|
|
|
bool
|
|
|
|
|
|
|
|
config ARCH_INLINE_WRITE_UNLOCK
|
|
|
|
bool
|
|
|
|
|
|
|
|
config ARCH_INLINE_WRITE_UNLOCK_BH
|
|
|
|
bool
|
|
|
|
|
|
|
|
config ARCH_INLINE_WRITE_UNLOCK_IRQ
|
|
|
|
bool
|
|
|
|
|
|
|
|
config ARCH_INLINE_WRITE_UNLOCK_IRQRESTORE
|
|
|
|
bool
|
|
|
|
|
2012-09-10 20:01:16 +08:00
|
|
|
config UNINLINE_SPIN_UNLOCK
|
|
|
|
bool
|
|
|
|
|
2009-11-09 23:21:34 +08:00
|
|
|
#
|
|
|
|
# lock_* functions are inlined when:
|
|
|
|
# - DEBUG_SPINLOCK=n and GENERIC_LOCKBREAK=n and ARCH_INLINE_*LOCK=y
|
|
|
|
#
|
|
|
|
# trylock_* functions are inlined when:
|
|
|
|
# - DEBUG_SPINLOCK=n and ARCH_INLINE_*LOCK=y
|
|
|
|
#
|
|
|
|
# unlock and unlock_irq functions are inlined when:
|
|
|
|
# - DEBUG_SPINLOCK=n and ARCH_INLINE_*LOCK=y
|
|
|
|
# or
|
|
|
|
# - DEBUG_SPINLOCK=n and PREEMPT=n
|
|
|
|
#
|
|
|
|
# unlock_bh and unlock_irqrestore functions are inlined when:
|
|
|
|
# - DEBUG_SPINLOCK=n and ARCH_INLINE_*LOCK=y
|
|
|
|
#
|
|
|
|
|
2012-09-10 20:01:16 +08:00
|
|
|
if !DEBUG_SPINLOCK
|
|
|
|
|
2009-11-09 23:21:34 +08:00
|
|
|
config INLINE_SPIN_TRYLOCK
|
2012-09-10 20:01:16 +08:00
|
|
|
def_bool y
|
|
|
|
depends on ARCH_INLINE_SPIN_TRYLOCK
|
2009-11-09 23:21:34 +08:00
|
|
|
|
|
|
|
config INLINE_SPIN_TRYLOCK_BH
|
2012-09-10 20:01:16 +08:00
|
|
|
def_bool y
|
|
|
|
depends on ARCH_INLINE_SPIN_TRYLOCK_BH
|
2009-11-09 23:21:34 +08:00
|
|
|
|
|
|
|
config INLINE_SPIN_LOCK
|
2012-09-10 20:01:16 +08:00
|
|
|
def_bool y
|
|
|
|
depends on !GENERIC_LOCKBREAK && ARCH_INLINE_SPIN_LOCK
|
2009-11-09 23:21:34 +08:00
|
|
|
|
|
|
|
config INLINE_SPIN_LOCK_BH
|
2012-09-10 20:01:16 +08:00
|
|
|
def_bool y
|
|
|
|
depends on !GENERIC_LOCKBREAK && ARCH_INLINE_SPIN_LOCK_BH
|
2009-11-09 23:21:34 +08:00
|
|
|
|
|
|
|
config INLINE_SPIN_LOCK_IRQ
|
2012-09-10 20:01:16 +08:00
|
|
|
def_bool y
|
|
|
|
depends on !GENERIC_LOCKBREAK && ARCH_INLINE_SPIN_LOCK_IRQ
|
2009-11-09 23:21:34 +08:00
|
|
|
|
|
|
|
config INLINE_SPIN_LOCK_IRQSAVE
|
2012-09-10 20:01:16 +08:00
|
|
|
def_bool y
|
|
|
|
depends on !GENERIC_LOCKBREAK && ARCH_INLINE_SPIN_LOCK_IRQSAVE
|
2009-11-09 23:21:34 +08:00
|
|
|
|
|
|
|
config INLINE_SPIN_UNLOCK_BH
|
2012-09-10 20:01:16 +08:00
|
|
|
def_bool y
|
|
|
|
depends on ARCH_INLINE_SPIN_UNLOCK_BH
|
2009-11-09 23:21:34 +08:00
|
|
|
|
|
|
|
config INLINE_SPIN_UNLOCK_IRQ
|
2012-09-10 20:01:16 +08:00
|
|
|
def_bool y
|
2013-05-17 16:51:33 +08:00
|
|
|
depends on !PREEMPT || ARCH_INLINE_SPIN_UNLOCK_IRQ
|
2009-11-09 23:21:34 +08:00
|
|
|
|
|
|
|
config INLINE_SPIN_UNLOCK_IRQRESTORE
|
2012-09-10 20:01:16 +08:00
|
|
|
def_bool y
|
|
|
|
depends on ARCH_INLINE_SPIN_UNLOCK_IRQRESTORE
|
2009-11-09 23:21:34 +08:00
|
|
|
|
|
|
|
|
|
|
|
config INLINE_READ_TRYLOCK
|
2012-09-10 20:01:16 +08:00
|
|
|
def_bool y
|
|
|
|
depends on ARCH_INLINE_READ_TRYLOCK
|
2009-11-09 23:21:34 +08:00
|
|
|
|
|
|
|
config INLINE_READ_LOCK
|
2012-09-10 20:01:16 +08:00
|
|
|
def_bool y
|
|
|
|
depends on !GENERIC_LOCKBREAK && ARCH_INLINE_READ_LOCK
|
2009-11-09 23:21:34 +08:00
|
|
|
|
|
|
|
config INLINE_READ_LOCK_BH
|
2012-09-10 20:01:16 +08:00
|
|
|
def_bool y
|
|
|
|
depends on !GENERIC_LOCKBREAK && ARCH_INLINE_READ_LOCK_BH
|
2009-11-09 23:21:34 +08:00
|
|
|
|
|
|
|
config INLINE_READ_LOCK_IRQ
|
2012-09-10 20:01:16 +08:00
|
|
|
def_bool y
|
|
|
|
depends on !GENERIC_LOCKBREAK && ARCH_INLINE_READ_LOCK_IRQ
|
2009-11-09 23:21:34 +08:00
|
|
|
|
|
|
|
config INLINE_READ_LOCK_IRQSAVE
|
2012-09-10 20:01:16 +08:00
|
|
|
def_bool y
|
|
|
|
depends on !GENERIC_LOCKBREAK && ARCH_INLINE_READ_LOCK_IRQSAVE
|
2009-11-09 23:21:34 +08:00
|
|
|
|
|
|
|
config INLINE_READ_UNLOCK
|
2012-09-10 20:01:16 +08:00
|
|
|
def_bool y
|
|
|
|
depends on !PREEMPT || ARCH_INLINE_READ_UNLOCK
|
2009-11-09 23:21:34 +08:00
|
|
|
|
|
|
|
config INLINE_READ_UNLOCK_BH
|
2012-09-10 20:01:16 +08:00
|
|
|
def_bool y
|
|
|
|
depends on ARCH_INLINE_READ_UNLOCK_BH
|
2009-11-09 23:21:34 +08:00
|
|
|
|
|
|
|
config INLINE_READ_UNLOCK_IRQ
|
2012-09-10 20:01:16 +08:00
|
|
|
def_bool y
|
2013-05-17 16:51:33 +08:00
|
|
|
depends on !PREEMPT || ARCH_INLINE_READ_UNLOCK_IRQ
|
2009-11-09 23:21:34 +08:00
|
|
|
|
|
|
|
config INLINE_READ_UNLOCK_IRQRESTORE
|
2012-09-10 20:01:16 +08:00
|
|
|
def_bool y
|
|
|
|
depends on ARCH_INLINE_READ_UNLOCK_IRQRESTORE
|
2009-11-09 23:21:34 +08:00
|
|
|
|
|
|
|
|
|
|
|
config INLINE_WRITE_TRYLOCK
|
2012-09-10 20:01:16 +08:00
|
|
|
def_bool y
|
|
|
|
depends on ARCH_INLINE_WRITE_TRYLOCK
|
2009-11-09 23:21:34 +08:00
|
|
|
|
|
|
|
config INLINE_WRITE_LOCK
|
2012-09-10 20:01:16 +08:00
|
|
|
def_bool y
|
|
|
|
depends on !GENERIC_LOCKBREAK && ARCH_INLINE_WRITE_LOCK
|
2009-11-09 23:21:34 +08:00
|
|
|
|
|
|
|
config INLINE_WRITE_LOCK_BH
|
2012-09-10 20:01:16 +08:00
|
|
|
def_bool y
|
|
|
|
depends on !GENERIC_LOCKBREAK && ARCH_INLINE_WRITE_LOCK_BH
|
2009-11-09 23:21:34 +08:00
|
|
|
|
|
|
|
config INLINE_WRITE_LOCK_IRQ
|
2012-09-10 20:01:16 +08:00
|
|
|
def_bool y
|
|
|
|
depends on !GENERIC_LOCKBREAK && ARCH_INLINE_WRITE_LOCK_IRQ
|
2009-11-09 23:21:34 +08:00
|
|
|
|
|
|
|
config INLINE_WRITE_LOCK_IRQSAVE
|
2012-09-10 20:01:16 +08:00
|
|
|
def_bool y
|
|
|
|
depends on !GENERIC_LOCKBREAK && ARCH_INLINE_WRITE_LOCK_IRQSAVE
|
2009-11-09 23:21:34 +08:00
|
|
|
|
|
|
|
config INLINE_WRITE_UNLOCK
|
2012-09-10 20:01:16 +08:00
|
|
|
def_bool y
|
|
|
|
depends on !PREEMPT || ARCH_INLINE_WRITE_UNLOCK
|
2009-11-09 23:21:34 +08:00
|
|
|
|
|
|
|
config INLINE_WRITE_UNLOCK_BH
|
2012-09-10 20:01:16 +08:00
|
|
|
def_bool y
|
|
|
|
depends on ARCH_INLINE_WRITE_UNLOCK_BH
|
2009-11-09 23:21:34 +08:00
|
|
|
|
|
|
|
config INLINE_WRITE_UNLOCK_IRQ
|
2012-09-10 20:01:16 +08:00
|
|
|
def_bool y
|
2013-05-17 16:51:33 +08:00
|
|
|
depends on !PREEMPT || ARCH_INLINE_WRITE_UNLOCK_IRQ
|
2009-11-09 23:21:34 +08:00
|
|
|
|
|
|
|
config INLINE_WRITE_UNLOCK_IRQRESTORE
|
2012-09-10 20:01:16 +08:00
|
|
|
def_bool y
|
|
|
|
depends on ARCH_INLINE_WRITE_UNLOCK_IRQRESTORE
|
|
|
|
|
|
|
|
endif
|
2009-12-03 03:49:16 +08:00
|
|
|
|
|
|
|
config MUTEX_SPIN_ON_OWNER
|
2012-09-10 20:01:16 +08:00
|
|
|
def_bool y
|
|
|
|
depends on SMP && !DEBUG_MUTEXES
|
2014-02-03 20:18:49 +08:00
|
|
|
|
|
|
|
config ARCH_USE_QUEUE_RWLOCK
|
|
|
|
bool
|
|
|
|
|
|
|
|
config QUEUE_RWLOCK
|
|
|
|
def_bool y if ARCH_USE_QUEUE_RWLOCK
|
|
|
|
depends on SMP
|