Skip to contentSkip to conversation

Timed wait/sleep

DISCUSSION Amin Azez 1 participant 1 message Jul 7, 2007

lore
Share & tools
lore

Amin Azez

author
#0 lore raw

Donzt beat me for this, but grub2 sounds more like a kernel every day.

I almost want to suggest nicking things from hurd.

Grub2 could even be the init on a minimal hurd setup, surely?

Cough

Sam

-----Original Message-----
From: "Alex Roman" <[email protected]>
To: "The development of GRUB 2" <[email protected]>
Sent: 06/07/07 23:21
Subject: Re: Timed wait/sleep

Quoted 6 lines · Haudy Kazemi

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!

Signature · 7 lines
Alex Roman <[email protected]>


_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel