summaryrefslogtreecommitdiff
path: root/sys/dev/hwpmc/hwpmc_intel.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2008-11-26 19:25:13 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2008-11-26 19:25:13 +0000
commit5113aa0af3c6587b45ea08a11568e4ce661a9ce0 (patch)
treef69ac60d4b54cb78db2c5136bf0599564ba0d80a /sys/dev/hwpmc/hwpmc_intel.c
parent54dd5ca200ebd3bf39ed8c7cf5166580944bd9c2 (diff)
Notes
Diffstat (limited to 'sys/dev/hwpmc/hwpmc_intel.c')
-rw-r--r--sys/dev/hwpmc/hwpmc_intel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/hwpmc/hwpmc_intel.c b/sys/dev/hwpmc/hwpmc_intel.c
index ab8c3706d791..80916c6017dd 100644
--- a/sys/dev/hwpmc/hwpmc_intel.c
+++ b/sys/dev/hwpmc/hwpmc_intel.c
@@ -37,6 +37,7 @@ __FBSDID("$FreeBSD$");
#include <sys/systm.h>
#include <machine/cpu.h>
+#include <machine/cputypes.h>
#include <machine/md_var.h>
#include <machine/specialreg.h>
@@ -79,7 +80,7 @@ pmc_intel_initialize(void)
enum pmc_cputype cputype;
int error, model, nclasses, ncpus;
- KASSERT(strcmp(cpu_vendor, "GenuineIntel") == 0,
+ KASSERT(cpu_vendor_id == CPU_VENDOR_INTEL,
("[intel,%d] Initializing non-intel processor", __LINE__));
PMCDBG(MDP,INI,0, "intel-initialize cpuid=0x%x", cpu_id);