ide_delay_50ms question
Jani Monoses (jani@astechnix.ro)
Mon, 3 Sep 2001 10:52:44 +0300 (EEST)
Hi
could anybody tell me why is the mdelay(50) solution better than the
schedule_timeout(HZ/20) in ide_delay_50ms.I suppose because it is bootime
and there is nothing to schedule.
But then the condition should also extend to CONFIG_BLK_DEV_IDECS_MODULE
as well, because when I insert an IDE compactflash card things stop for a
second or so nad I use a modular driver.
And I don't know about removable harddrives but isn't the schedule_timeout
solution better for them as well?
void ide_delay_50ms (void)
{
#ifndef CONFIG_BLK_DEV_IDECS
mdelay(50);
#else
__set_current_state(TASK_UNINTERRUPTIBLE);
schedule_timeout(HZ/20);
#endif /* CONFIG_BLK_DEV_IDECS */
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/