fork of 9front i guess
Go to file
cinap_lenrek 347ac6ef58 guesscpuhz(), apm suspend
use fastclock timer (pit2) to measure cpufreq in guesscpuhz(). this
gives a bigger period minimizing the danger of overrun as pit2 runs
at the constant maximum period of 0x10000 ticks. also use smaller
loop increments (1000) and bigger maximum loop upper bound.

move the loops < ... check to the bottom of the loop so we get the
effective count *before* adding the next loop increment.

ilock() while doing measurements in guesscpuhz() to prevent accidents
with other processors reading fastclock or doing guesscpuhz()
in parralel.

export new i8253reset() function for apm to reset the timers after
a apm bios suspend.
2012-09-30 19:41:34 +02:00
386 remove .dummy files and replace it by sys/lib/rootstub script 2011-05-03 04:42:16 +00:00
68000 remove .dummy files and replace it by sys/lib/rootstub script 2011-05-03 04:42:16 +00:00
68020 remove .dummy files and replace it by sys/lib/rootstub script 2011-05-03 04:42:16 +00:00
acme fix permission for /acme/mkfile 2011-06-07 23:32:57 +00:00
adm/timezone remove file committed in error 2011-09-19 22:59:44 -05:00
alpha remove .dummy files and replace it by sys/lib/rootstub script 2011-05-03 04:42:16 +00:00
amd64 6c: extern register fix (import from patch/6c-extreg) 2012-09-18 18:18:43 +02:00
arm remove .dummy files and replace it by sys/lib/rootstub script 2011-05-03 04:42:16 +00:00
lib /lib/troll: linux is slow 2012-09-28 19:51:03 -04:00
mips remove .dummy files and replace it by sys/lib/rootstub script 2011-05-03 04:42:16 +00:00
power remove .dummy files and replace it by sys/lib/rootstub script 2011-05-03 04:42:16 +00:00
power64 remove .dummy files and replace it by sys/lib/rootstub script 2011-05-03 04:42:16 +00:00
rc hget: fix usage 2012-09-28 16:37:51 -05:00
sparc remove .dummy files and replace it by sys/lib/rootstub script 2011-05-03 04:42:16 +00:00
sparc64 remove .dummy files and replace it by sys/lib/rootstub script 2011-05-03 04:42:16 +00:00
sys guesscpuhz(), apm suspend 2012-09-30 19:41:34 +02:00
.hgignore hgignore: ignore more stuff 2012-07-03 03:48:57 +02:00