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 Only attach on the first SMT ID (as in revi...



details:   https://anonhg.NetBSD.org/src/rev/224209712a65
branches:  trunk
changeset: 762882:224209712a65
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Fri Mar 04 11:56:27 2011 +0000

description:
Only attach on the first SMT ID (as in revision 1.16).

diffstat:

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

diffs (31 lines):

diff -r a4aeb9f19329 -r 224209712a65 sys/arch/x86/x86/coretemp.c
--- a/sys/arch/x86/x86/coretemp.c       Fri Mar 04 11:48:58 2011 +0000
+++ b/sys/arch/x86/x86/coretemp.c       Fri Mar 04 11:56:27 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: coretemp.c,v 1.22 2011/02/24 15:42:17 jruoho Exp $ */
+/* $NetBSD: coretemp.c,v 1.23 2011/03/04 11:56:27 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: coretemp.c,v 1.22 2011/02/24 15:42:17 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: coretemp.c,v 1.23 2011/03/04 11:56:27 jruoho Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -135,6 +135,12 @@
                return 0;
 
        /*
+        * Only attach on the first SMT ID.
+        */
+       if (ci->ci_smt_id != 0)
+               return 0 ;
+
+       /*
         * CPUID 0x06 returns 1 if the processor
         * has on-die thermal sensors. EBX[0:3]
         * contains the number of sensors.



Home | Main Index | Thread Index | Old Index