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 When stopping a CPU, clear its bit from...
details: https://anonhg.NetBSD.org/src/rev/d3f4ba333118
branches: trunk
changeset: 542212:d3f4ba333118
user: pk <pk%NetBSD.org@localhost>
date: Thu Jan 23 22:33:41 2003 +0000
description:
When stopping a CPU, clear its bit from cpu_ready_mask.
diffstat:
sys/arch/sparc/sparc/cpuvar.h | 3 ++-
sys/arch/sparc/sparc/intr.c | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r 5f9daf6b88ea -r d3f4ba333118 sys/arch/sparc/sparc/cpuvar.h
--- a/sys/arch/sparc/sparc/cpuvar.h Thu Jan 23 22:08:44 2003 +0000
+++ b/sys/arch/sparc/sparc/cpuvar.h Thu Jan 23 22:33:41 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpuvar.h,v 1.57 2003/01/23 19:54:35 pk Exp $ */
+/* $NetBSD: cpuvar.h,v 1.58 2003/01/23 22:33:41 pk Exp $ */
/*
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -441,6 +441,7 @@
#define CPU_MID2CPUNO(mid) ((mid) != 0 ? (mid) - 8 : 0)
extern struct cpu_info **cpus;
+extern u_int cpu_ready_mask; /* the set of CPUs marked as READY */
#define cpuinfo (*(struct cpu_info *)CPUINFO_VA)
diff -r 5f9daf6b88ea -r d3f4ba333118 sys/arch/sparc/sparc/intr.c
--- a/sys/arch/sparc/sparc/intr.c Thu Jan 23 22:08:44 2003 +0000
+++ b/sys/arch/sparc/sparc/intr.c Thu Jan 23 22:33:41 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: intr.c,v 1.78 2003/01/23 19:54:35 pk Exp $ */
+/* $NetBSD: intr.c,v 1.79 2003/01/23 22:33:41 pk Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -318,6 +318,7 @@
/* In case there's an xcall in progress (unlikely) */
spl0();
cpuinfo.flags &= ~CPUFLG_READY;
+ cpu_ready_mask &= ~(1 << cpu_number());
prom_cpustop(0);
break;
case OPENPROM_MBX_ABORT:
Home |
Main Index |
Thread Index |
Old Index