radio/miropcm20-rds: replace
Subsystems (2)
PATCH 1/1 radio/miropcm20-rds: replace
I would appreciate any comments from the janitors list.
Thanks,
Nish
Applys-to: 2.6.7
Description: Uses msleep() instead of schedule_timeout() so the task is guaranteed to delay the desired time.
Signed-off-by Nishanth Aravamudan <[email protected]>
drivers/media/radio/miropcm20-rds.c +2 -2
@@ -14,6 +14,7 @@#include <linux/slab.h> #include <linux/fs.h> #include <linux/miscdevice.h> +#include <linux/delay.h> #include <asm/uaccess.h> #include "miropcm20-rds-core.h"
@@ -60,8 +61,7 @@ static ssize_t rds_f_read(struct file *fchar c;char bits[8 ]; - current->state=TASK_UNINTERRUPTIBLE ; -schedule_timeout (2 *HZ ); +msleep (2000 );aci_rds_cmd (RDS_STATUS , &c,1 );print_matrix (&c, bits);if (copy_to_user (buffer, bits,8 ))
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors