]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/char/rocket.c
drivers/char: use __set_current_state()
[linux-2.6-omap-h63xx.git] / drivers / char / rocket.c
index aa4cc12bbcb1355d227ca3bd1edc087a3d37fa1d..e249d8cfcd06ce68c283fabb11a13618764373ae 100644 (file)
@@ -943,7 +943,7 @@ static int block_til_ready(struct tty_struct *tty, struct file *filp,
 #endif
                schedule();     /*  Don't hold spinlock here, will hang PC */
        }
-       current->state = TASK_RUNNING;
+       __set_current_state(TASK_RUNNING);
        remove_wait_queue(&info->open_wait, &wait);
 
        spin_lock_irqsave(&info->slock, flags);
@@ -1598,7 +1598,7 @@ static void rp_wait_until_sent(struct tty_struct *tty, int timeout)
                if (signal_pending(current))
                        break;
        }
-       current->state = TASK_RUNNING;
+       __set_current_state(TASK_RUNNING);
 #ifdef ROCKET_DEBUG_WAIT_UNTIL_SENT
        printk(KERN_INFO "txcnt = %d (jiff=%lu)...done\n", txcnt, jiffies);
 #endif