Message ID | 160226288653.7002.2578979062422193705.tip-bot2@tip-bot2 |
---|---|
State | In Next |
Commit | c2743d1a8f70d161fa22015e15d6060b0e51dbe6 |
Headers | show |
Series |
|
Related | show |
diff --git a/include/linux/bit_spinlock.h b/include/linux/bit_spinlock.h index bbc4730..1e03d54 100644 --- a/include/linux/bit_spinlock.h +++ b/include/linux/bit_spinlock.h @@ -90,10 +90,8 @@ static inline int bit_spin_is_locked(int bitnum, unsigned long *addr) { #if defined(CONFIG_SMP) || defined(CONFIG_DEBUG_SPINLOCK) return test_bit(bitnum, addr); -#elif defined CONFIG_PREEMPT_COUNT - return preempt_count(); #else - return 1; + return preempt_count(); #endif }