Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Nishanth Aravamudan and committed by
Linus Torvalds
8b93ec77 66c006a5

+4 -4
+2 -2
drivers/media/video/msp3400.c
··· 741 741 set_current_state(TASK_INTERRUPTIBLE); 742 742 schedule(); 743 743 } else { 744 - set_current_state(TASK_INTERRUPTIBLE); 745 - schedule_timeout(msecs_to_jiffies(timeout)); 744 + schedule_timeout_interruptible 745 + (msecs_to_jiffies(timeout)); 746 746 } 747 747 } 748 748
+2 -2
drivers/media/video/saa7134/saa7134-tvaudio.c
··· 342 342 set_current_state(TASK_INTERRUPTIBLE); 343 343 schedule(); 344 344 } else { 345 - set_current_state(TASK_INTERRUPTIBLE); 346 - schedule_timeout(msecs_to_jiffies(timeout)); 345 + schedule_timeout_interruptible 346 + (msecs_to_jiffies(timeout)); 347 347 } 348 348 } 349 349 remove_wait_queue(&dev->thread.wq, &wait);