summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Cambus <fcambus@cvs.openbsd.org>2020-07-15 08:24:30 +0000
committerFrederic Cambus <fcambus@cvs.openbsd.org>2020-07-15 08:24:30 +0000
commit29fca2e8aa2c3772c2a41e36cda78d2fb0fe7b68 (patch)
tree969c9262a830be13214a3afbb22b7335141b8928
parent18d41bb6394f60aca5da94fd91bbd2c974c60706 (diff)
Use CPU_IS_PRIMARY macro on alpha and mips64.
OK deraadt@, visa@
-rw-r--r--sys/arch/alpha/alpha/cpu.c4
-rw-r--r--sys/arch/mips64/mips64/cpu.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/alpha/alpha/cpu.c b/sys/arch/alpha/alpha/cpu.c
index cef7166de15..9f9821a9c99 100644
--- a/sys/arch/alpha/alpha/cpu.c
+++ b/sys/arch/alpha/alpha/cpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.c,v 1.43 2020/05/29 04:42:23 deraadt Exp $ */
+/* $OpenBSD: cpu.c,v 1.44 2020/07/15 08:24:29 fcambus Exp $ */
/* $NetBSD: cpu.c,v 1.44 2000/05/23 05:12:53 thorpej Exp $ */
/*-
@@ -426,7 +426,7 @@ cpu_boot_secondary_processors(void)
ci = cpu_info[i];
if (ci == NULL || ci->ci_idle_pcb == NULL)
continue;
- if (ci->ci_flags & CPUF_PRIMARY)
+ if (CPU_IS_PRIMARY(ci))
continue;
if ((cpus_booted & (1UL << i)) == 0)
continue;
diff --git a/sys/arch/mips64/mips64/cpu.c b/sys/arch/mips64/mips64/cpu.c
index 8270b4ac4c3..d8ce5cdcc24 100644
--- a/sys/arch/mips64/mips64/cpu.c
+++ b/sys/arch/mips64/mips64/cpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.c,v 1.75 2020/07/11 15:18:08 visa Exp $ */
+/* $OpenBSD: cpu.c,v 1.76 2020/07/15 08:24:29 fcambus Exp $ */
/*
* Copyright (c) 1997-2004 Opsycon AB (www.opsycon.se)
@@ -514,7 +514,7 @@ cpu_boot_secondary_processors(void)
CPU_INFO_FOREACH(cii, ci) {
if ((ci->ci_flags & CPUF_PRESENT) == 0)
continue;
- if (ci->ci_flags & CPUF_PRIMARY)
+ if (CPU_IS_PRIMARY(ci))
continue;
ci->ci_randseed = (arc4random() & 0x7fffffff) + 1;