diff options
author | Milind Arun Choudhary <milindchoudhary@gmail.com> | 2007-05-08 09:30:52 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 20:15:13 +0200 |
commit | cc0a8fbb7ce00f65dc337dd91389b7151f44ed30 (patch) | |
tree | 2d33013f99e7b889932618ff02a77dae7734023d /drivers/char/rocket.c | |
parent | reiserfs: use __set_current_state() (diff) | |
download | linux-cc0a8fbb7ce00f65dc337dd91389b7151f44ed30.tar.xz linux-cc0a8fbb7ce00f65dc337dd91389b7151f44ed30.zip |
drivers/char: use __set_current_state()
use __set_current_state(TASK_*) instead of current->state = TASK_*,
Signed-off-by: Milind Arun Choudhary <milindchoudhary@gmail.com>
Cc: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/rocket.c')
-rw-r--r-- | drivers/char/rocket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/rocket.c b/drivers/char/rocket.c index aa4cc12bbcb1..e249d8cfcd06 100644 --- a/drivers/char/rocket.c +++ b/drivers/char/rocket.c @@ -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 |