Module Name: src
Committed By: riastradh
Date: Mon Jul 24 23:42:00 UTC 2023
Modified Files:
src/sys/arch/x86/x86: errata.c
Log Message:
x86/errata.c: Only say the errata revision search for cpu0.
To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/x86/x86/errata.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/errata.c
diff -u src/sys/arch/x86/x86/errata.c:1.29 src/sys/arch/x86/x86/errata.c:1.30
--- src/sys/arch/x86/x86/errata.c:1.29 Mon Jul 24 22:21:08 2023
+++ src/sys/arch/x86/x86/errata.c Mon Jul 24 23:42:00 2023
@@ -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)