diff options
author | Nishanth Aravamudan <nacc@us.ibm.com> | 2005-09-10 09:27:28 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-10 19:06:38 +0200 |
commit | 86e8486245a01f05a3267b2e8b5c02c2303b670d (patch) | |
tree | 4d9f90d8d3f34461f6dddacae708eb31753c7bb6 /drivers/block/paride/pg.c | |
parent | [PATCH] mips: fix-up schedule_timeout() usage (diff) | |
download | linux-86e8486245a01f05a3267b2e8b5c02c2303b670d.tar.xz linux-86e8486245a01f05a3267b2e8b5c02c2303b670d.zip |
[PATCH] drivers/block: fix-up schedule_timeout() usage
Use schedule_timeout_{un,}interruptible() instead of
set_current_state()/schedule_timeout() to reduce kernel size.
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Cc: Jens Axboe <axboe@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/block/paride/pg.c')
-rw-r--r-- | drivers/block/paride/pg.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/block/paride/pg.c b/drivers/block/paride/pg.c index 84d8e291ed96..b3982395f22b 100644 --- a/drivers/block/paride/pg.c +++ b/drivers/block/paride/pg.c @@ -276,8 +276,7 @@ static inline u8 DRIVE(struct pg *dev) static void pg_sleep(int cs) { - current->state = TASK_INTERRUPTIBLE; - schedule_timeout(cs); + schedule_timeout_interruptible(cs); } static int pg_wait(struct pg *dev, int go, int stop, unsigned long tmo, char *msg) |