#include <linux/tty.h>
#include <linux/timer.h>
#include <linux/ctype.h>
-#include <linux/kd.h>
#include <linux/mm.h>
#include <linux/string.h>
#include <linux/slab.h>
set_bit(TTY_DONT_FLIP, &tty->flags);
continue;
}
- current->state = TASK_RUNNING;
+ __set_current_state(TASK_RUNNING);
/* Deal with packet mode. */
if (tty->packet && b == buf) {
if (!waitqueue_active(&tty->read_wait))
tty->minimum_to_wake = minimum;
- current->state = TASK_RUNNING;
+ __set_current_state(TASK_RUNNING);
size = b - buf;
if (size) {
retval = size;
schedule();
}
break_out:
- current->state = TASK_RUNNING;
+ __set_current_state(TASK_RUNNING);
remove_wait_queue(&tty->write_wait, &wait);
return (b - buf) ? b - buf : retval;
}