diff options
| author | Joseph Koshy <jkoshy@FreeBSD.org> | 2008-11-15 11:07:54 +0000 |
|---|---|---|
| committer | Joseph Koshy <jkoshy@FreeBSD.org> | 2008-11-15 11:07:54 +0000 |
| commit | edfea6b4ad7d1344b881359b022842e5838c33ca (patch) | |
| tree | 2c19b3277fe563d4603ab8a0b2ea952c7571abfc /sys/dev/hwpmc | |
| parent | 8cd64ec8ad8689409f2f632b82fae7018a619837 (diff) | |
Notes
Diffstat (limited to 'sys/dev/hwpmc')
| -rw-r--r-- | sys/dev/hwpmc/hwpmc_intel.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/sys/dev/hwpmc/hwpmc_intel.c b/sys/dev/hwpmc/hwpmc_intel.c index 3c49c57b7640..ab8c3706d791 100644 --- a/sys/dev/hwpmc/hwpmc_intel.c +++ b/sys/dev/hwpmc/hwpmc_intel.c @@ -151,8 +151,9 @@ pmc_intel_initialize(void) case PMC_CPU_INTEL_PIV: error = pmc_p4_initialize(pmc_mdep, ncpus); - KASSERT(md->pmd_npmc == TSC_NPMCS + P4_NPMCS, ("[intel,%d] " - "incorrect npmc count %d", __LINE__, md->pmd_npmc)); + KASSERT(pmc_mdep->pmd_npmc == TSC_NPMCS + P4_NPMCS, + ("[intel,%d] incorrect npmc count %d", __LINE__, + pmc_mdep->pmd_npmc)); break; #endif @@ -168,8 +169,9 @@ pmc_intel_initialize(void) case PMC_CPU_INTEL_PM: error = pmc_p6_initialize(pmc_mdep, ncpus); - KASSERT(md->pmd_npmc == TSC_NPMCS + P6_NPMCS, ("[intel,%d] " - "incorrect npmc count %d", __LINE__, md->pmd_npmc)); + KASSERT(pmc_mdep->pmd_npmc == TSC_NPMCS + P6_NPMCS, + ("[intel,%d] incorrect npmc count %d", __LINE__, + pmc_mdep->pmd_npmc)); break; /* @@ -179,8 +181,9 @@ pmc_intel_initialize(void) case PMC_CPU_INTEL_P5: error = pmc_p5_initialize(pmc_mdep, ncpus); - KASSERT(md->pmd_npmc == TSC_NPMCS + PENTIUM_NPMCS, ("[intel,%d] " - "incorrect npmc count %d", __LINE__, md->pmd_npmc)); + KASSERT(pmc_mdep->pmd_npmc == TSC_NPMCS + PENTIUM_NPMCS, + ("[intel,%d] incorrect npmc count %d", __LINE__, + md->pmd_npmc)); break; #endif |
