Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/sparc use CPU_READY()



details:   https://anonhg.NetBSD.org/src/rev/587804f5936b
branches:  trunk
changeset: 512576:587804f5936b
user:      mrg <mrg%NetBSD.org@localhost>
date:      Tue Jul 10 15:03:46 2001 +0000

description:
use CPU_READY()

diffstat:

 sys/arch/sparc/sparc/cache.c |  17 ++++++-----------
 1 files changed, 6 insertions(+), 11 deletions(-)

diffs (59 lines):

diff -r 4cfc2cc93cb0 -r 587804f5936b sys/arch/sparc/sparc/cache.c
--- a/sys/arch/sparc/sparc/cache.c      Tue Jul 10 15:02:50 2001 +0000
+++ b/sys/arch/sparc/sparc/cache.c      Tue Jul 10 15:03:46 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cache.c,v 1.56 2001/07/07 20:09:15 mrg Exp $ */
+/*     $NetBSD: cache.c,v 1.57 2001/07/10 15:03:46 mrg Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -938,8 +938,7 @@
                struct cpu_info *cpi = cpus[n];
                struct xpmsg_flush_page *p;
 
-               if (cpi == NULL || cpuinfo.mid == cpi->mid ||
-                   (cpi->flags & CPUFLG_READY) == 0)
+               if (CPU_READY(cpi))
                        continue;
                p = &cpi->msg.u.xpmsg_flush_page;
                s = splhigh();
@@ -967,8 +966,7 @@
                struct cpu_info *cpi = cpus[n];
                struct xpmsg_flush_segment *p;
 
-               if (cpi == NULL || cpuinfo.mid == cpi->mid ||
-                   (cpi->flags & CPUFLG_READY) == 0)
+               if (CPU_READY(cpi))
                        continue;
                p = &cpi->msg.u.xpmsg_flush_segment;
                s = splhigh();
@@ -997,8 +995,7 @@
                struct cpu_info *cpi = cpus[n];
                struct xpmsg_flush_region *p;
 
-               if (cpi == NULL || cpuinfo.mid == cpi->mid ||
-                   (cpi->flags & CPUFLG_READY) == 0)
+               if (CPU_READY(cpi))
                        continue;
                p = &cpi->msg.u.xpmsg_flush_region;
                s = splhigh();
@@ -1025,8 +1022,7 @@
                struct cpu_info *cpi = cpus[n];
                struct xpmsg_flush_context *p;
 
-               if (cpi == NULL || cpuinfo.mid == cpi->mid ||
-                   (cpi->flags & CPUFLG_READY) == 0)
+               if (CPU_READY(cpi))
                        continue;
                p = &cpi->msg.u.xpmsg_flush_context;
                s = splhigh();
@@ -1054,8 +1050,7 @@
                struct cpu_info *cpi = cpus[n];
                struct xpmsg_flush_range *p;
 
-               if (cpi == NULL || cpuinfo.mid == cpi->mid ||
-                   (cpi->flags & CPUFLG_READY) == 0)
+               if (CPU_READY(cpi))
                        continue;
                p = &cpi->msg.u.xpmsg_flush_range;
                s = splhigh();



Home | Main Index | Thread Index | Old Index