svn commit: r187594 - in head/sys: compat/linprocfs i386/cpufreq
Andrew Thompson
thompsa at FreeBSD.org
Thu Jan 22 11:42:28 PST 2009
On Thu, Jan 22, 2009 at 05:06:33PM +0000, Jung-uk Kim wrote:
> Author: jkim
> Date: Thu Jan 22 17:06:33 2009
> New Revision: 187594
> URL: http://svn.freebsd.org/changeset/base/187594
>
> Log:
> Replace couple of strcmp(cpu_vendor, "foo") with cpu_vendor_id for i386
> and hide i386-specific code under #ifdef.
>
> Modified:
> head/sys/compat/linprocfs/linprocfs.c
> head/sys/i386/cpufreq/smist.c
>
> Modified: head/sys/i386/cpufreq/smist.c
> ==============================================================================
> --- head/sys/i386/cpufreq/smist.c Thu Jan 22 15:52:13 2009 (r187593)
> +++ head/sys/i386/cpufreq/smist.c Thu Jan 22 17:06:33 2009 (r187594)
> @@ -285,7 +285,7 @@ smist_identify(driver_t *driver, device_
> 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] */
This needs <machine/cputypes.h>
cheers,
Andrew
More information about the svn-src-head
mailing list