Module Name: src Committed By: jruoho Date: Fri Mar 4 11:56:27 UTC 2011
Modified Files: src/sys/arch/x86/x86: coretemp.c Log Message: Only attach on the first SMT ID (as in revision 1.16). To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.23 src/sys/arch/x86/x86/coretemp.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/x86/x86/coretemp.c diff -u src/sys/arch/x86/x86/coretemp.c:1.22 src/sys/arch/x86/x86/coretemp.c:1.23 --- src/sys/arch/x86/x86/coretemp.c:1.22 Thu Feb 24 15:42:17 2011 +++ src/sys/arch/x86/x86/coretemp.c Fri Mar 4 11:56:27 2011 @@ -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.