Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Sep 2012 13:33:39 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r240650 - head/sys/dev/hwpmc
Message-ID:  <201209181333.q8IDXdf9001771@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Tue Sep 18 13:33:39 2012
New Revision: 240650
URL: http://svn.freebsd.org/changeset/base/240650

Log:
  hwpmc amd_pcpu_fini: fix a bug in code locked under DEBUG
  
  MFC after:	16 days

Modified:
  head/sys/dev/hwpmc/hwpmc_amd.c

Modified: head/sys/dev/hwpmc/hwpmc_amd.c
==============================================================================
--- head/sys/dev/hwpmc/hwpmc_amd.c	Tue Sep 18 13:24:14 2012	(r240649)
+++ head/sys/dev/hwpmc/hwpmc_amd.c	Tue Sep 18 13:33:39 2012	(r240650)
@@ -839,7 +839,7 @@ amd_pcpu_fini(struct pmc_mdep *md, int c
 	for (i = 0; i < AMD_NPMCS; i++) {
 		KASSERT(pac->pc_amdpmcs[i].phw_pmc == NULL,
 		    ("[amd,%d] CPU%d/PMC%d in use", __LINE__, cpu, i));
-		KASSERT(AMD_PMC_IS_STOPPED(AMD_PMC_EVSEL_0 + (i-1)),
+		KASSERT(AMD_PMC_IS_STOPPED(AMD_PMC_EVSEL_0 + i),
 		    ("[amd,%d] CPU%d/PMC%d not stopped", __LINE__, cpu, i));
 	}
 #endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209181333.q8IDXdf9001771>