From owner-cvs-src@FreeBSD.ORG Sat Aug 16 01:23:53 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E596937B401; Sat, 16 Aug 2003 01:23:53 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 881C843FCB; Sat, 16 Aug 2003 01:23:53 -0700 (PDT) (envelope-from phk@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h7G8Nr0U045178; Sat, 16 Aug 2003 01:23:53 -0700 (PDT) (envelope-from phk@repoman.freebsd.org) Received: (from phk@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h7G8NrAv045177; Sat, 16 Aug 2003 01:23:53 -0700 (PDT) Message-Id: <200308160823.h7G8NrAv045177@repoman.freebsd.org> From: Poul-Henning Kamp Date: Sat, 16 Aug 2003 01:23:53 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/sys timetc.h src/sys/kern kern_tc.c src/sys/dev/acpica acpi_timer.c src/sys/i386/i386 tsc.c src/sys/i386/isa clock.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Aug 2003 08:23:54 -0000 phk 2003/08/16 01:23:53 PDT FreeBSD src repository Modified files: sys/sys timetc.h sys/kern kern_tc.c sys/dev/acpica acpi_timer.c sys/i386/i386 tsc.c sys/i386/isa clock.c Log: Give timecounters a numeric quality field. A timecounter will be selected when registered if its quality is not negative and no less than the current timecounters. Add a sysctl to report all available timecounters and their qualities. Give the dummy timecounter a solid negative quality of minus a million. Give the i8254 zero and the ACPI 1000. The TSC gets 800, unless APM or SMP forces it negative. Other timecounters default to zero quality and thereby retain current selection behaviour. Revision Changes Path 1.23 +6 -5 src/sys/dev/acpica/acpi_timer.c 1.202 +16 -18 src/sys/i386/i386/tsc.c 1.203 +2 -1 src/sys/i386/isa/clock.c 1.154 +35 -8 src/sys/kern/kern_tc.c 1.58 +7 -0 src/sys/sys/timetc.h