Date: Mon, 25 Feb 2002 01:51:18 -0800 (PST) From: Poul-Henning Kamp <phk@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/acpica acpi_timer.c Message-ID: <200202250951.g1P9pIS67883@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
phk 2002/02/25 01:51:18 PST
Modified files:
sys/dev/acpica acpi_timer.c
Log:
Add a new test_counter() function which tries to determine the width of
the inter-value histogram for 2000 samples. If the width is 3 or less
for 10 consequtive samples, we trust the counter to be good, otherwise
we use the *_safe() method.
This method may be too strict, but the worst which can happen is that
we take the performance hit of the *_safe() method when we should not.
Make the *_safe() method more discriminating by mandating that the three
samples do not span more than 15 ticks on the counter.
Disable the PCI-ident based probing as a means to recognize good
counters.
Inspiration from: dillon and msmith
Revision Changes Path
1.14 +46 -17 src/sys/dev/acpica/acpi_timer.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202250951.g1P9pIS67883>
