> Hi
>
> For short delays in threads, earlier one was able to use
>
> current->timeout = x;
> current->state = TASK_INTERRUPTIBLE;
> schedule();
> current->timeout = 0;
>
> in 2.2.5 kernel looks like this field has disappeared. should we have to
The new method for this is:
current->state = TASK_INTERRUPTIBLE;
schedule_timeout(timeout);
See schedule_timeout in kernel/sched.c
-bp
-- # bryan at terran dot org # http://www.terran.org/~bryan
- 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/