media/zoran_driver:
Subsystems (2)
PATCH 16/17 media/zoran_driver:
Any comments would be appreciated.
Description: Use ssleep() instead of schedule_timeout() to guarantee the task delays as expected.
Signed-off-by Nishanth Aravamudan <[email protected]>
drivers/media/video/zoran_driver.c +2 -4
@@ -1917,8 +1917,7 @@ zoran_set_norm (struct zoran *zr,decoder_command (zr,DECODER_SET_NORM , &norm);/* let changes come into effect */ - current->state =TASK_UNINTERRUPTIBLE ; -schedule_timeout (2 *HZ ); +ssleep (2 );decoder_command (zr,DECODER_GET_STATUS , &status);if (!(status &DECODER_STATUS_GOOD )) {
@@ -2639,8 +2638,7 @@ zoran_do_ioctl (struct inode *inode,decoder_command (zr,DECODER_SET_NORM , &norm);/* sleep 1 second */ - current->state =TASK_UNINTERRUPTIBLE ; -schedule_timeout (1 *HZ ); +ssleep (1 );/* Get status of video decoder */ decoder_command (zr,DECODER_GET_STATUS , &status);
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors