mirror of
https://github.com/adulau/aha.git
synced 2025-01-04 07:03:38 +00:00
[PATCH] drivers/media: fix-up schedule_timeout() usage
Use schedule_timeout_interruptible() instead of set_current_state()/schedule_timeout() to reduce kernel size. Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> Cc: Mauro Carvalho Chehab <mchehab@brturbo.com.br> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
66c006a551
commit
8b93ec77a6
2 changed files with 4 additions and 4 deletions
|
@ -741,8 +741,8 @@ static int msp34xx_sleep(struct msp3400c *msp, int timeout)
|
|||
set_current_state(TASK_INTERRUPTIBLE);
|
||||
schedule();
|
||||
} else {
|
||||
set_current_state(TASK_INTERRUPTIBLE);
|
||||
schedule_timeout(msecs_to_jiffies(timeout));
|
||||
schedule_timeout_interruptible
|
||||
(msecs_to_jiffies(timeout));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -342,8 +342,8 @@ static int tvaudio_sleep(struct saa7134_dev *dev, int timeout)
|
|||
set_current_state(TASK_INTERRUPTIBLE);
|
||||
schedule();
|
||||
} else {
|
||||
set_current_state(TASK_INTERRUPTIBLE);
|
||||
schedule_timeout(msecs_to_jiffies(timeout));
|
||||
schedule_timeout_interruptible
|
||||
(msecs_to_jiffies(timeout));
|
||||
}
|
||||
}
|
||||
remove_wait_queue(&dev->thread.wq, &wait);
|
||||
|
|
Loading…
Reference in a new issue