All of lore.kernel.org
 help / color / mirror / Atom feed
* ide_delay_50ms question
@ 2001-09-03  7:52 Jani Monoses
  2001-09-03  9:28 ` David Woodhouse
  2001-09-03 10:34 ` Alan Cox
  0 siblings, 2 replies; 4+ messages in thread
From: Jani Monoses @ 2001-09-03  7:52 UTC (permalink / raw)
  To: linux-kernel


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 */
}



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-09-03 11:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-03  7:52 ide_delay_50ms question Jani Monoses
2001-09-03  9:28 ` David Woodhouse
2001-09-03 10:34 ` Alan Cox
2001-09-03 11:44   ` Andrzej Krzysztofowicz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.