|
@@ -3209,7 +3209,11 @@ static inline int signal_pending_state(long state, struct task_struct *p)
|
|
|
* cond_resched_lock() will drop the spinlock before scheduling,
|
|
|
* cond_resched_softirq() will enable bhs before scheduling.
|
|
|
*/
|
|
|
+#ifndef CONFIG_PREEMPT
|
|
|
extern int _cond_resched(void);
|
|
|
+#else
|
|
|
+static inline int _cond_resched(void) { return 0; }
|
|
|
+#endif
|
|
|
|
|
|
#define cond_resched() ({ \
|
|
|
___might_sleep(__FILE__, __LINE__, 0); \
|