From owner-cvs-src-old@FreeBSD.ORG Thu Jul 29 17:52:38 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E555B106566B for ; Thu, 29 Jul 2010 17:52:38 +0000 (UTC) (envelope-from gnn@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id D3A478FC15 for ; Thu, 29 Jul 2010 17:52:38 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id o6THqcRM007966 for ; Thu, 29 Jul 2010 17:52:38 GMT (envelope-from gnn@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id o6THqcK7007965 for cvs-src-old@freebsd.org; Thu, 29 Jul 2010 17:52:38 GMT (envelope-from gnn@repoman.freebsd.org) Message-Id: <201007291752.o6THqcK7007965@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to gnn@repoman.freebsd.org using -f From: "George V. Neville-Neil" Date: Thu, 29 Jul 2010 17:52:23 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/hwpmc hwpmc_core.c hwpmc_core.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jul 2010 17:52:39 -0000 gnn 2010-07-29 17:52:23 UTC FreeBSD src repository Modified files: sys/dev/hwpmc hwpmc_core.c hwpmc_core.h Log: SVN rev 210621 on 2010-07-29 17:52:23Z by gnn Make sure that we clear the correct bits when we turn off a PMC. It was possible that we could have turned a bit on but never cleared it. Extend the calls to rdmsr() to all necessary functions, not just those which previously caused a panic. Pointed out by: jhb@ MFC after: 1 week Revision Changes Path 1.12 +28 -21 src/sys/dev/hwpmc/hwpmc_core.c 1.4 +6 -0 src/sys/dev/hwpmc/hwpmc_core.h