summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorFrederic Cambus <fcambus@cvs.openbsd.org>2020-07-22 08:33:44 +0000
committerFrederic Cambus <fcambus@cvs.openbsd.org>2020-07-22 08:33:44 +0000
commitfe052904ad8872ec58254c5bec439af27323e99f (patch)
tree5887c59dca4334a81eda3bc85a23b6839bd1bb5a /sys
parent760c518bb3ca6f3c923dfaa732402fa9b3054796 (diff)
Use CPU_IS_PRIMARY macro in identifycpu() on i386.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/i386/i386/machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c
index 0d392c75802..92377f5561d 100644
--- a/sys/arch/i386/i386/machdep.c
+++ b/sys/arch/i386/i386/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.636 2020/05/31 06:23:57 dlg Exp $ */
+/* $OpenBSD: machdep.c,v 1.637 2020/07/22 08:33:43 fcambus Exp $ */
/* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */
/*-
@@ -2106,7 +2106,7 @@ identifycpu(struct cpu_info *ci)
cpu_device);
}
- if (ci->ci_flags & CPUF_PRIMARY) {
+ if (CPU_IS_PRIMARY(ci)) {
if (cpu_ecxfeature & CPUIDECX_RDRAND)
has_rdrand = 1;
if (ci->ci_feature_sefflags_ebx & SEFF0EBX_RDSEED)