diff options
author | jkim <jkim@FreeBSD.org> | 2009-01-22 17:06:33 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2009-01-22 17:06:33 +0000 |
commit | ad7caec2a5ab0f5b6d6a9e7bd939aeee91026da0 (patch) | |
tree | 3f42bbbf3936dd0c3b5a8810821faa79204f8769 /sys/i386 | |
parent | 3959d9afa29c69635f686030e4b0f2a7571c184c (diff) | |
download | FreeBSD-src-ad7caec2a5ab0f5b6d6a9e7bd939aeee91026da0.zip FreeBSD-src-ad7caec2a5ab0f5b6d6a9e7bd939aeee91026da0.tar.gz |
Replace couple of strcmp(cpu_vendor, "foo") with cpu_vendor_id for i386
and hide i386-specific code under #ifdef.
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/cpufreq/smist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/cpufreq/smist.c b/sys/i386/cpufreq/smist.c index a267226..d01140c 100644 --- a/sys/i386/cpufreq/smist.c +++ b/sys/i386/cpufreq/smist.c @@ -285,7 +285,7 @@ smist_identify(driver_t *driver, device_t parent) return; /* Check for a supported processor */ - if (strcmp(cpu_vendor, "GenuineIntel") != 0) + if (cpu_vendor_id != CPU_VENDOR_INTEL) return; switch (cpu_id & 0xff0) { case 0x680: /* Pentium III [coppermine] */ |