diff options
author | Milind Arun Choudhary <milindchoudhary@gmail.com> | 2007-05-08 00:30:52 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 11:15:13 -0700 |
commit | cc0a8fbb7ce00f65dc337dd91389b7151f44ed30 (patch) | |
tree | 2d33013f99e7b889932618ff02a77dae7734023d /drivers/char/rtc.c | |
parent | 5ab2f7e0fdd04148e08348701d6bd6a292ce2d26 (diff) | |
download | kernel_samsung_espresso10-cc0a8fbb7ce00f65dc337dd91389b7151f44ed30.zip kernel_samsung_espresso10-cc0a8fbb7ce00f65dc337dd91389b7151f44ed30.tar.gz kernel_samsung_espresso10-cc0a8fbb7ce00f65dc337dd91389b7151f44ed30.tar.bz2 |
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/rtc.c')
-rw-r--r-- | drivers/char/rtc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/rtc.c b/drivers/char/rtc.c index c7dac9b..20380a2 100644 --- a/drivers/char/rtc.c +++ b/drivers/char/rtc.c @@ -388,7 +388,7 @@ static ssize_t rtc_read(struct file *file, char __user *buf, if (!retval) retval = count; out: - current->state = TASK_RUNNING; + __set_current_state(TASK_RUNNING); remove_wait_queue(&rtc_wait, &wait); return retval; |