From owner-cvs-src@FreeBSD.ORG Sun Oct 29 09:48:45 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org 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 0EECD16A412; Sun, 29 Oct 2006 09:48:45 +0000 (UTC) (envelope-from bde@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF7C643D60; Sun, 29 Oct 2006 09:48:44 +0000 (GMT) (envelope-from bde@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k9T9miZC051879; Sun, 29 Oct 2006 09:48:44 GMT (envelope-from bde@repoman.freebsd.org) Received: (from bde@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k9T9mi70051878; Sun, 29 Oct 2006 09:48:44 GMT (envelope-from bde) Message-Id: <200610290948.k9T9mi70051878@repoman.freebsd.org> From: Bruce Evans Date: Sun, 29 Oct 2006 09:48:44 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/amd64/amd64 prof_machdep.c src/sys/i386/isa prof_machdep.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 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: Sun, 29 Oct 2006 09:48:45 -0000 bde 2006-10-29 09:48:44 UTC FreeBSD src repository Modified files: sys/amd64/amd64 prof_machdep.c sys/i386/isa prof_machdep.c Log: Removed some SMP ifdefs so that using the TSC as a cputime clock is not completely decided at config time. Just don't default to using the TSC if there are multiple active CPUs. Also, don't default to using the TSC if it is broken. SMP ifdefs are still used to disallow using perfmon since perfmon is always broken if SMP is just configured. This only helps much for SMP kernels running on 1 CPU. The overheads for using the i8254 cputime clock were a bit too high on 486/33's, and now on multi-GHz CPUs they are usually in the 99-99.9% range. Switching from the old default of an i8254 clock to the TSC works poorly because the overheads are not recalibrated. Use the same condition for declaring perfmon stuff as for using it. Revision Changes Path 1.28 +5 -10 src/sys/amd64/amd64/prof_machdep.c 1.29 +10 -9 src/sys/i386/isa/prof_machdep.c