diff options
author | jkim <jkim@FreeBSD.org> | 2008-11-26 19:25:13 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2008-11-26 19:25:13 +0000 |
commit | d6a4501391cb33f81fbd1bb13ac7f282b60bd72b (patch) | |
tree | f69ac60d4b54cb78db2c5136bf0599564ba0d80a /sys/dev/hwpmc/hwpmc_intel.c | |
parent | 6d7402ae81464d87de6c696eaaf85c0f1431cf37 (diff) | |
download | FreeBSD-src-d6a4501391cb33f81fbd1bb13ac7f282b60bd72b.zip FreeBSD-src-d6a4501391cb33f81fbd1bb13ac7f282b60bd72b.tar.gz |
Introduce cpu_vendor_id and replace a lot of strcmp(cpu_vendor, "...").
Reviewed by: jhb, peter (early amd64 version)
Diffstat (limited to 'sys/dev/hwpmc/hwpmc_intel.c')
-rw-r--r-- | sys/dev/hwpmc/hwpmc_intel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/hwpmc/hwpmc_intel.c b/sys/dev/hwpmc/hwpmc_intel.c index ab8c370..80916c6 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); |