grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Timed wait/sleep


From: Jan C. Kleinsorge
Subject: Re: Timed wait/sleep
Date: Sat, 07 Jul 2007 12:29:18 +0200
User-agent: Thunderbird 1.5.0.12 (X11/20070604)

For i/o delays on x86, Linux uses a sequence of outp(0x80). 0x80 is
usually unsed.
One to three times should be quite sufficient.

Jan

ex Roman wrote:
> On 06 Jul 2007 17:04:19 -0500, Haudy Kazemi <address@hidden> wrote:
>> On Jul 6 2007, Alex Roman wrote:
>> I'd avoid straight loops...with those you run into processor speed
>> issues...runs too fast on new CPUs, runs too slow on old hardware. Of
>> course I guess you could calibrate some straight loops to the RTC,
>> and then
>> use the loops rather than polling the RTC periodically, but I don't
>> think
>> the extra level of complication would provide any real benefit.
>
> Yes, I am reluctant to use loops for that reason.
>
> I could definitely do a simple read RTC in a loop until the time
> difference from when I started the loop is what I want it to be...
>
> I'll try to get that working, but I am open to other suggestions as well!
>
>
> Thanks!
>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]