]> git.karo-electronics.de Git - linux-beck.git/blobdiff - include/linux/sched.h
sched: Isolate preempt counting in its own config option
[linux-beck.git] / include / linux / sched.h
index 483c1ed5bc4d934016cb60ee0e2565a7d6589c33..4ecd5cbe7e2422e9817eddf4a23eee711f88563b 100644 (file)
@@ -2502,7 +2502,7 @@ extern int _cond_resched(void);
 
 extern int __cond_resched_lock(spinlock_t *lock);
 
-#ifdef CONFIG_PREEMPT
+#ifdef CONFIG_PREEMPT_COUNT
 #define PREEMPT_LOCK_OFFSET    PREEMPT_OFFSET
 #else
 #define PREEMPT_LOCK_OFFSET    0