Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Oct 2012 18:59:23 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r241273 - stable/8/sys/dev/hwpmc
Message-ID:  <201210061859.q96IxNgH020682@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Sat Oct  6 18:59:23 2012
New Revision: 241273
URL: http://svn.freebsd.org/changeset/base/241273

Log:
  MFC r240650: hwpmc amd_pcpu_fini: fix a bug in code locked under DEBUG

Modified:
  stable/8/sys/dev/hwpmc/hwpmc_amd.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/dev/   (props changed)
  stable/8/sys/dev/hwpmc/   (props changed)

Modified: stable/8/sys/dev/hwpmc/hwpmc_amd.c
==============================================================================
--- stable/8/sys/dev/hwpmc/hwpmc_amd.c	Sat Oct  6 18:59:12 2012	(r241272)
+++ stable/8/sys/dev/hwpmc/hwpmc_amd.c	Sat Oct  6 18:59:23 2012	(r241273)
@@ -838,7 +838,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?201210061859.q96IxNgH020682>