#define cfs_waitq_broadcast(w) wake_up_all(w)
#define cfs_waitq_wait(l, s) schedule()
#define cfs_waitq_timedwait(l, s, t) schedule_timeout(t)
-#define cfs_schedule_timeout(s, t) schedule_timeout(t)
+#define cfs_schedule_timeout(s, t) \
+({ \
+ set_current_state(s); \
+ schedule_timeout(t); \
+})
#define cfs_schedule() schedule()
#define cfs_kthread_run(fn, data, fmt, arg...) kthread_run(fn, data, fmt, ##arg)
/* Call cfs_pause() here always adds 1 to load average
* because kernel counts # active tasks as nr_running
* + nr_uninterruptible. */
- set_current_state(CFS_TASK_INTERRUPTIBLE);
cfs_schedule_timeout(CFS_TASK_INTERRUPTIBLE,
cfs_time_seconds(1));
}