diff --git a/include/linux/sched.h b/include/linux/sched.h
index 5a63f2d72af6e1e84035bb91df75bd25b843fb6b..5395a6176f4be13911a57d7174de0274947edb94 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -2038,7 +2038,7 @@ static inline int need_resched(void)
  * cond_resched_softirq() will enable bhs before scheduling.
  */
 extern int _cond_resched(void);
-#ifdef CONFIG_PREEMPT
+#ifdef CONFIG_PREEMPT_BKL
 static inline int cond_resched(void)
 {
 	return 0;