2.2.18: e100.c (SuSE 7.1): udelay() used in a wrong way?
Quoted 1 line
From the source code of
drivers/net/e100.c:
/****************************************************************************
* Name: Phy82562EHDelayMilliseconds
*
* Description: Stalls execution for a specified number of milliseconds.
*
* Arguments: Time - milliseconds to delay
*
* Returns: Nothing
*
************************************************************************
***/
void
Phy82562EHDelayMilliseconds(int Time)
{
udelay(Time);
}AFAIK, udelay() delays microseconds, not milliseconds.
Ulrich
Quoted 7 lines · Ulrich Windl
void
Phy82562EHDelayMilliseconds(int Time){ udelay(Time); }AFAIK,
udelay()delays microseconds, not milliseconds.
Yep, you are correct, and the code is incorrect.
mdelay() delays milliseconds.
Signature · 3 lines
Jeff Garzik | May you have warm words on a cold evening, Building 1024 | a full mooon on a dark night, MandrakeSoft | and a smooth road all the way to your door.