Since there is confusion on this subject, does it seem reasonable to
provide functions to encapsulate this behavior?
inline void ksnooze_nowakeups (unsigned long timeout)
{
__set_current_state(TASK_UNINTERRUPTIBLE);
schedule_timeout(timeout);
}
inline void ksnooze (unsigned long timeout)
{
do {
__set_current_state(TASK_UNINTERRUPTIBLE);
timeout = schedule_timeout(timeout);
} while (timeout);
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/