From owner-cvs-all Mon Feb 25 1:51:23 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 2FB9137B402; Mon, 25 Feb 2002 01:51:18 -0800 (PST) Received: (from phk@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g1P9pIS67883; Mon, 25 Feb 2002 01:51:18 -0800 (PST) (envelope-from phk) Message-Id: <200202250951.g1P9pIS67883@freefall.freebsd.org> From: Poul-Henning Kamp Date: Mon, 25 Feb 2002 01:51:18 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/acpica acpi_timer.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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