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 Initialize the IPI message locks.



details:   https://anonhg.NetBSD.org/src/rev/37514a3a726c
branches:  trunk
changeset: 504440:37514a3a726c
user:      pk <pk%NetBSD.org@localhost>
date:      Fri Mar 02 17:00:13 2001 +0000

description:
Initialize the IPI message locks.

diffstat:

 sys/arch/sparc/sparc/cpu.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r 8a499a03ea2b -r 37514a3a726c sys/arch/sparc/sparc/cpu.c
--- a/sys/arch/sparc/sparc/cpu.c        Fri Mar 02 16:46:19 2001 +0000
+++ b/sys/arch/sparc/sparc/cpu.c        Fri Mar 02 17:00:13 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.c,v 1.111 2001/02/28 14:45:23 pk Exp $ */
+/*     $NetBSD: cpu.c,v 1.112 2001/03/02 17:00:13 pk Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -336,6 +336,7 @@
        cpi->ci_cpuid = cpu_instance++;
        cpi->mid = mid;
        cpi->node = node;
+       simple_lock_init(&cpi->msg.lock);
 
        if (ncpu > 1)
                printf(": mid %d", mid);
@@ -487,7 +488,6 @@
                struct cpu_info *cpi = cpus[n];
                if (cpi == NULL || cpuinfo.mid == cpi->mid)
                        continue;
-
                simple_lock(&cpi->msg.lock);
                cpi->msg.tag = XPMSG_PAUSECPU;
                raise_ipi(cpi);



Home | Main Index | Thread Index | Old Index