Re: [patch, 2.6.10-rc2] floppy boot-time detection fix

From: Arjan van de Ven
Date: Fri Nov 26 2004 - 20:04:43 EST


On Thu, Nov 25, 2004 at 03:33:37PM +0100, Ingo Molnar wrote:
> --- linux/drivers/block/floppy.c.orig
> +++ linux/drivers/block/floppy.c
> @@ -4504,6 +4578,13 @@ int __init floppy_init(void)
> floppy_track_buffer = NULL;
> max_buffer_sectors = 0;
> }
> + /*
> + * Small 10 msec delay to let through any interrupt that
> + * initialization might have triggered, to not
> + * confuse detection:
> + */
> + current->state = TASK_UNINTERRUPTIBLE;
> + schedule_timeout(HZ/100 + 1);


how about using msleep() ?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/