X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=kernel%2Fspinlock.c;h=ae28c82451237a7ee0b0d8653701e7eed5437c6b;hb=caea99ef339af8e07cda8d03fa415e4b8820f400;hp=cd72424c26625765085e0b2306345d474cb9476d;hpb=532df780a2012ad75b3f078647f229c4dabd99d1;p=cascardo%2Flinux.git diff --git a/kernel/spinlock.c b/kernel/spinlock.c index cd72424c2662..ae28c8245123 100644 --- a/kernel/spinlock.c +++ b/kernel/spinlock.c @@ -65,8 +65,7 @@ EXPORT_SYMBOL(_write_trylock); * even on CONFIG_PREEMPT, because lockdep assumes that interrupts are * not re-enabled during lock-acquire (which the preempt-spin-ops do): */ -#if !defined(CONFIG_PREEMPT) || !defined(CONFIG_SMP) || \ - defined(CONFIG_DEBUG_LOCK_ALLOC) +#if !defined(CONFIG_GENERIC_LOCKBREAK) || defined(CONFIG_DEBUG_LOCK_ALLOC) void __lockfunc _read_lock(rwlock_t *lock) {