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 Print package ID, core ID and SMT ID.



details:   https://anonhg.NetBSD.org/src/rev/5dd52d7959c3
branches:  trunk
changeset: 823816:5dd52d7959c3
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed May 10 08:02:37 2017 +0000

description:
Print package ID, core ID and SMT ID.

diffstat:

 sys/arch/x86/x86/identcpu.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 6e5006cb2854 -r 5dd52d7959c3 sys/arch/x86/x86/identcpu.c
--- a/sys/arch/x86/x86/identcpu.c       Wed May 10 07:51:07 2017 +0000
+++ b/sys/arch/x86/x86/identcpu.c       Wed May 10 08:02:37 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: identcpu.c,v 1.53 2017/02/16 15:00:30 tls Exp $        */
+/*     $NetBSD: identcpu.c,v 1.54 2017/05/10 08:02:37 msaitoh Exp $    */
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: identcpu.c,v 1.53 2017/02/16 15:00:30 tls Exp $");
+__KERNEL_RCSID(0, "$NetBSD: identcpu.c,v 1.54 2017/05/10 08:02:37 msaitoh Exp $");
 
 #include "opt_xen.h"
 
@@ -949,7 +949,8 @@
        if (ci->ci_signature != 0)
                aprint_normal(", id 0x%x", ci->ci_signature);
        aprint_normal("\n");
-
+       aprint_normal_dev(ci->ci_dev, "package %lu, core %lu, smt %lu\n",
+           ci->ci_package_id, ci->ci_core_id, ci->ci_smt_id);
        if (cpu_brand_string[0] == '\0') {
                strlcpy(cpu_brand_string, cpu_getmodel(),
                    sizeof(cpu_brand_string));



Home | Main Index | Thread Index | Old Index