Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/x86/x86 Also check CPU vendor in the match-function.



details:   https://anonhg.NetBSD.org/src/rev/1f35c07d1dab
branches:  trunk
changeset: 762599:1f35c07d1dab
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Thu Feb 24 05:14:58 2011 +0000

description:
Also check CPU vendor in the match-function.

diffstat:

 sys/arch/x86/x86/est.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r fe219bd44ef7 -r 1f35c07d1dab sys/arch/x86/x86/est.c
--- a/sys/arch/x86/x86/est.c    Thu Feb 24 04:42:54 2011 +0000
+++ b/sys/arch/x86/x86/est.c    Thu Feb 24 05:14:58 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: est.c,v 1.20 2011/02/23 11:43:23 jruoho Exp $  */
+/*     $NetBSD: est.c,v 1.21 2011/02/24 05:14:58 jruoho Exp $  */
 /*
  * Copyright (c) 2003 Michael Eriksson.
  * All rights reserved.
@@ -76,7 +76,7 @@
  *   http://www.codemonkey.org.uk/projects/cpufreq/cpufreq-2.4.22-pre6-1.gz
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: est.c,v 1.20 2011/02/23 11:43:23 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: est.c,v 1.21 2011/02/24 05:14:58 jruoho Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -1018,6 +1018,10 @@
        if (strcmp(cfaa->name, "est") != 0)
                return 0;
 
+       if (cpu_vendor != CPUVENDOR_IDT &&
+           cpu_vendor != CPUVENDOR_INTEL)
+               return 0;
+
        if ((ci->ci_feat_val[1] & CPUID2_EST) == 0)
                return 0;
 



Home | Main Index | Thread Index | Old Index