From owner-svn-src-all@FreeBSD.ORG Tue Dec 7 18:14:38 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 683B31065673; Tue, 7 Dec 2010 18:14:38 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 573988FC13; Tue, 7 Dec 2010 18:14:38 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id oB7IEcWE076061; Tue, 7 Dec 2010 18:14:38 GMT (envelope-from jkim@svn.freebsd.org) Received: (from jkim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id oB7IEc0S076058; Tue, 7 Dec 2010 18:14:38 GMT (envelope-from jkim@svn.freebsd.org) Message-Id: <201012071814.oB7IEc0S076058@svn.freebsd.org> From: Jung-uk Kim Date: Tue, 7 Dec 2010 18:14:38 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r216261 - in stable/8/sys: amd64/amd64 i386/i386 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Dec 2010 18:14:38 -0000 Author: jkim Date: Tue Dec 7 18:14:38 2010 New Revision: 216261 URL: http://svn.freebsd.org/changeset/base/216261 Log: MFC: r216159 Do not change CPU ticker frequency if TSC is P-state invariant. Approved by: re (kib) Modified: stable/8/sys/amd64/amd64/tsc.c stable/8/sys/i386/i386/tsc.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props changed) stable/8/sys/cddl/contrib/opensolaris/ (props changed) stable/8/sys/contrib/dev/acpica/ (props changed) stable/8/sys/contrib/pf/ (props changed) Modified: stable/8/sys/amd64/amd64/tsc.c ============================================================================== --- stable/8/sys/amd64/amd64/tsc.c Tue Dec 7 17:54:04 2010 (r216260) +++ stable/8/sys/amd64/amd64/tsc.c Tue Dec 7 18:14:38 2010 (r216261) @@ -146,6 +146,9 @@ tsc_levels_changed(void *arg, int unit) int count, error; uint64_t max_freq; + if (tsc_is_invariant) + return; + /* Only use values from the first CPU, assuming all are equal. */ if (unit != 0) return; Modified: stable/8/sys/i386/i386/tsc.c ============================================================================== --- stable/8/sys/i386/i386/tsc.c Tue Dec 7 17:54:04 2010 (r216260) +++ stable/8/sys/i386/i386/tsc.c Tue Dec 7 18:14:38 2010 (r216261) @@ -170,6 +170,9 @@ tsc_levels_changed(void *arg, int unit) int count, error; uint64_t max_freq; + if (tsc_is_invariant) + return; + /* Only use values from the first CPU, assuming all are equal. */ if (unit != 0) return;