mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 21:13:52 +00:00
6b78ff036f
Previously, we would keep sampling the CPU frequency until two subsequent samples differed by at most 1 MHz. This could take several seconds, and would unnecessarily delay boot. Instead, if sampling is too unreliable, just give up and calculate the average frequency from 10 samples. This is no worse than picking the frequency that just happened to be returned twice in a row. The fact that this method of sampling fails could indicate that there's a problem with our performance counter implementation or timer interrupt, but that's a separate issue... |
||
---|---|---|
.. | ||
amd64 | ||
arm | ||
i386 | ||
powerpc | ||
apc.c | ||
balmgr.c | ||
bug.c | ||
clock.c | ||
config.c | ||
devqueue.c | ||
dpc.c | ||
eventobj.c | ||
except.c | ||
freeze.c | ||
gate.c | ||
gmutex.c | ||
ipi.c | ||
krnlinit.c | ||
mutex.c | ||
procobj.c | ||
profobj.c | ||
queue.c | ||
semphobj.c | ||
spinlock.c | ||
thrdobj.c | ||
thrdschd.c | ||
time.c | ||
timerobj.c | ||
wait.c |