diff options
author | Milind Arun Choudhary <milindchoudhary@gmail.com> | 2007-05-08 03:30:52 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 14:15:13 -0400 |
commit | cc0a8fbb7ce00f65dc337dd91389b7151f44ed30 (patch) | |
tree | 2d33013f99e7b889932618ff02a77dae7734023d /drivers/char/cyclades.c | |
parent | 5ab2f7e0fdd04148e08348701d6bd6a292ce2d26 (diff) |
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/cyclades.c')
-rw-r--r-- | drivers/char/cyclades.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/cyclades.c b/drivers/char/cyclades.c index 29b5375feeba..ff63ee1d6065 100644 --- a/drivers/char/cyclades.c +++ b/drivers/char/cyclades.c | |||
@@ -2445,7 +2445,7 @@ block_til_ready(struct tty_struct *tty, struct file *filp, | |||
2445 | base_addr = cinfo->base_addr; | 2445 | base_addr = cinfo->base_addr; |
2446 | firm_id = base_addr + ID_ADDRESS; | 2446 | firm_id = base_addr + ID_ADDRESS; |
2447 | if (!ISZLOADED(*cinfo)) { | 2447 | if (!ISZLOADED(*cinfo)) { |
2448 | current->state = TASK_RUNNING; | 2448 | __set_current_state(TASK_RUNNING); |
2449 | remove_wait_queue(&info->open_wait, &wait); | 2449 | remove_wait_queue(&info->open_wait, &wait); |
2450 | return -EINVAL; | 2450 | return -EINVAL; |
2451 | } | 2451 | } |
@@ -2498,7 +2498,7 @@ block_til_ready(struct tty_struct *tty, struct file *filp, | |||
2498 | schedule(); | 2498 | schedule(); |
2499 | } | 2499 | } |
2500 | } | 2500 | } |
2501 | current->state = TASK_RUNNING; | 2501 | __set_current_state(TASK_RUNNING); |
2502 | remove_wait_queue(&info->open_wait, &wait); | 2502 | remove_wait_queue(&info->open_wait, &wait); |
2503 | if (!tty_hung_up_p(filp)) { | 2503 | if (!tty_hung_up_p(filp)) { |
2504 | info->count++; | 2504 | info->count++; |