/* ide_stall_queue() can be used by a drive to give excess bandwidth back to the port by sleeping for timeout jiffies.  */
void ide_stall_queue(ide_drive_t *drive, unsigned long timeout)
/* ide_stall_queue() can be used by a drive to give excess bandwidth back to the port by sleeping for timeout jiffies.  */
void ide_stall_queue(ide_drive_t *drive, unsigned long timeout)
{
	if (timeout > WAIT_WORSTCASE)
		timeout = WAIT_WORSTCASE;
	drive->sleep = timeout + jiffies;
	drive->dev_flags |= IDE_DFLAG_SLEEPING;
}