|
@@ -133,7 +133,7 @@
|
|
|
* x - the number of seconds to sleep.
|
|
* x - the number of seconds to sleep.
|
|
|
*/
|
|
*/
|
|
|
#define SLEEP(x) \
|
|
#define SLEEP(x) \
|
|
|
- do { current->state = TASK_INTERRUPTIBLE; \
|
|
|
|
|
|
|
+ do { __set_current_state(TASK_INTERRUPTIBLE); \
|
|
|
schedule_timeout((x)*HZ); \
|
|
schedule_timeout((x)*HZ); \
|
|
|
} while (0)
|
|
} while (0)
|
|
|
|
|
|
|
@@ -141,7 +141,7 @@
|
|
|
* x - the number of jiffies to sleep.
|
|
* x - the number of jiffies to sleep.
|
|
|
*/
|
|
*/
|
|
|
#define SLEEPJIFFIES(x) \
|
|
#define SLEEPJIFFIES(x) \
|
|
|
- do { current->state = TASK_INTERRUPTIBLE; \
|
|
|
|
|
|
|
+ do { __set_current_state(TASK_INTERRUPTIBLE); \
|
|
|
schedule_timeout(x); \
|
|
schedule_timeout(x); \
|
|
|
} while (0)
|
|
} while (0)
|
|
|
|
|
|