From owner-cvs-all Wed Sep 4 12:52:23 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C54237B400; Wed, 4 Sep 2002 12:52:18 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E38D443E7B; Wed, 4 Sep 2002 12:52:17 -0700 (PDT) (envelope-from phk@FreeBSD.org) Received: from freefall.freebsd.org (phk@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g84JqHJU022387; Wed, 4 Sep 2002 12:52:17 -0700 (PDT) (envelope-from phk@freefall.freebsd.org) Received: (from phk@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g84JqHZG022386; Wed, 4 Sep 2002 12:52:17 -0700 (PDT) Message-Id: <200209041952.g84JqHZG022386@freefall.freebsd.org> From: Poul-Henning Kamp Date: Wed, 4 Sep 2002 12:52:17 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/i386/i386 elan-mmcr.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/09/04 12:52:17 PDT Modified files: sys/i386/i386 elan-mmcr.c Log: On the ElanSC520 CPU use general purpose timer#2 as timecounter. This is a vast improvement over the i8254, since it is a simple memory load rather than a comples sequence of interrupt blocking, multiple input/output instructions, and wrap-around detection. I have not bothered to time the fundamental timecounter get routine, but gettimeofday(2) is 10% faster with the ELAN timecounte. The downside is that HZ=100 is not enough, 150 or more recommended, I use 250 myself. Revision Changes Path 1.4 +19 -0 src/sys/i386/i386/elan-mmcr.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message