Best way to get a 250 us delay?

From: Alan Stern
Date: Mon Jun 21 2004 - 08:58:25 EST


What's the best way for a driver running in process context to get a
middle-length delay, say around 250 microseconds? By "best", I mean:

(A) Minimum processor utilization;

(B) Minimum latency (additional delay beyond the amount
requested).

I realize that these criteria are in conflict and some balance needs to be
found. Perhaps the best answer for (A) is msleep(1) or the equivalent,
while the best answer for (B) is udelay(250). Are there other
possibilities that might work out better?

Alan Stern

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