From: James S. <jsi...@us...> - 2001-10-17 17:00:16
|
Update of /cvsroot/linuxconsole/ruby/linux/drivers/serial In directory usw-pr-cvs1:/tmp/cvs-serv18608/linux/drivers/serial Modified Files: serial_21285.c Log Message: Replaced all current->state = by the SMP safe set_current_state. Index: serial_21285.c =================================================================== RCS file: /cvsroot/linuxconsole/ruby/linux/drivers/serial/serial_21285.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- serial_21285.c 2001/10/08 04:33:45 1.4 +++ serial_21285.c 2001/10/17 17:00:14 1.5 @@ -266,14 +266,14 @@ { int orig_jiffies = jiffies; while (*CSR_UARTFLG & 8) { - current->state = TASK_INTERRUPTIBLE; + set_current_state(TASK_INTERRUPTIBLE); schedule_timeout(1); if (signal_pending(current)) break; if (timeout && time_after(jiffies, orig_jiffies + timeout)) break; } - current->state = TASK_RUNNING; + set_current_state(TASK_RUNNING); } static int rs285_open(struct tty_struct *tty, struct file *filp) |