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 x86/errata.c: Only say the errata revision ...



details:   https://anonhg.NetBSD.org/src/rev/5d0465933cc5
branches:  trunk
changeset: 378170:5d0465933cc5
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Jul 24 23:42:00 2023 +0000

description:
x86/errata.c: Only say the errata revision search for cpu0.

diffstat:

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

diffs (32 lines):

diff -r 7a1f8d132784 -r 5d0465933cc5 sys/arch/x86/x86/errata.c
--- a/sys/arch/x86/x86/errata.c Mon Jul 24 22:21:08 2023 +0000
+++ b/sys/arch/x86/x86/errata.c Mon Jul 24 23:42:00 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: errata.c,v 1.29 2023/07/24 22:21:08 riastradh Exp $    */
+/*     $NetBSD: errata.c,v 1.30 2023/07/24 23:42:00 riastradh Exp $    */
 
 /*-
  * Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -47,7 +47,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: errata.c,v 1.29 2023/07/24 22:21:08 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: errata.c,v 1.30 2023/07/24 23:42:00 riastradh Exp $");
 
 #include <sys/types.h>
 #include <sys/systm.h>
@@ -416,8 +416,11 @@ x86_errata(void)
        ci = curcpu();
 
        x86_cpuid(0x80000001, descs);
-       aprint_verbose_dev(ci->ci_dev, "searching errata for cpu revision"
-           " 0x%08"PRIx32"\n", descs[0]);
+       if (CPU_IS_PRIMARY(ci)) {
+               aprint_verbose_dev(ci->ci_dev,
+                   "searching errata for cpu revision 0x%08"PRIx32"\n",
+                   descs[0]);
+       }
 
        for (i = 0;; i += 2) {
                if ((rev = cpurevs[i]) == OINK)



Home | Main Index | Thread Index | Old Index