Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch Use CPU_IS_PRIMARY macro on alpha and sparc64.



details:   https://anonhg.NetBSD.org/src/rev/573e7c2b56aa
branches:  trunk
changeset: 937044:573e7c2b56aa
user:      fcambus <fcambus%NetBSD.org@localhost>
date:      Fri Aug 07 14:20:08 2020 +0000

description:
Use CPU_IS_PRIMARY macro on alpha and sparc64.

diffstat:

 sys/arch/alpha/alpha/cpu.c     |  6 +++---
 sys/arch/sparc64/sparc64/cpu.c |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 7de1145af8c0 -r 573e7c2b56aa sys/arch/alpha/alpha/cpu.c
--- a/sys/arch/alpha/alpha/cpu.c        Fri Aug 07 13:43:50 2020 +0000
+++ b/sys/arch/alpha/alpha/cpu.c        Fri Aug 07 14:20:08 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.c,v 1.97 2019/04/08 00:47:21 thorpej Exp $ */
+/* $NetBSD: cpu.c,v 1.98 2020/08/07 14:20:08 fcambus Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -59,7 +59,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.97 2019/04/08 00:47:21 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.98 2020/08/07 14:20:08 fcambus Exp $");
 
 #include "opt_ddb.h"
 #include "opt_multiprocessor.h"
@@ -408,7 +408,7 @@
                ci = cpu_info[i];
                if (ci == NULL || ci->ci_data.cpu_idlelwp == NULL)
                        continue;
-               if (ci->ci_flags & CPUF_PRIMARY)
+               if (CPU_IS_PRIMARY(ci))
                        continue;
                if ((cpus_booted & (1UL << i)) == 0)
                        continue;
diff -r 7de1145af8c0 -r 573e7c2b56aa sys/arch/sparc64/sparc64/cpu.c
--- a/sys/arch/sparc64/sparc64/cpu.c    Fri Aug 07 13:43:50 2020 +0000
+++ b/sys/arch/sparc64/sparc64/cpu.c    Fri Aug 07 14:20:08 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.c,v 1.137 2019/12/30 06:54:31 macallan Exp $ */
+/*     $NetBSD: cpu.c,v 1.138 2020/08/07 14:20:08 fcambus Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -52,7 +52,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.137 2019/12/30 06:54:31 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.138 2020/08/07 14:20:08 fcambus Exp $");
 
 #include "opt_multiprocessor.h"
 
@@ -503,7 +503,7 @@
         * For other cpus, we need to call mi_cpu_attach()
         * and complete setting up cpcb.
         */
-       if (ci->ci_flags & CPUF_PRIMARY) {
+       if (CPU_IS_PRIMARY(ci)) {
                fpstate_cache = pool_cache_init(sizeof(struct fpstate64),
                                        SPARC64_BLOCK_SIZE, 0, 0, "fpstate",
                                        NULL, IPL_NONE, NULL, NULL, NULL);



Home | Main Index | Thread Index | Old Index