svn commit: r241272 - stable/9/sys/dev/hwpmc
Andriy Gapon
avg at FreeBSD.org
Sat Oct 6 18:59:13 UTC 2012
Author: avg
Date: Sat Oct 6 18:59:12 2012
New Revision: 241272
URL: http://svn.freebsd.org/changeset/base/241272
Log:
MFC r240650: hwpmc amd_pcpu_fini: fix a bug in code locked under DEBUG
Modified:
stable/9/sys/dev/hwpmc/hwpmc_amd.c
Directory Properties:
stable/9/sys/ (props changed)
stable/9/sys/dev/ (props changed)
Modified: stable/9/sys/dev/hwpmc/hwpmc_amd.c
==============================================================================
--- stable/9/sys/dev/hwpmc/hwpmc_amd.c Sat Oct 6 18:57:44 2012 (r241271)
+++ stable/9/sys/dev/hwpmc/hwpmc_amd.c Sat Oct 6 18:59:12 2012 (r241272)
@@ -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
More information about the svn-src-stable-9
mailing list