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 print the cpu number for the mutex not ...
details: https://anonhg.NetBSD.org/src/rev/948bfa488373
branches: trunk
changeset: 448515:948bfa488373
user: mrg <mrg%NetBSD.org@localhost>
date: Mon Feb 04 09:57:39 2019 +0000
description:
print the cpu number for the mutex not held xcallintr debug message.
add a comment about why this case fires.
diffstat:
sys/arch/sparc/sparc/intr.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diffs (34 lines):
diff -r 6d3b8e41cca1 -r 948bfa488373 sys/arch/sparc/sparc/intr.c
--- a/sys/arch/sparc/sparc/intr.c Mon Feb 04 09:56:48 2019 +0000
+++ b/sys/arch/sparc/sparc/intr.c Mon Feb 04 09:57:39 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: intr.c,v 1.119 2017/12/02 00:48:05 macallan Exp $ */
+/* $NetBSD: intr.c,v 1.120 2019/02/04 09:57:39 mrg Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.119 2017/12/02 00:48:05 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.120 2019/02/04 09:57:39 mrg Exp $");
#include "opt_multiprocessor.h"
#include "opt_sparc_arch.h"
@@ -366,10 +366,14 @@
if (v != xcallintr)
cpuinfo.ci_sintrcnt[13].ev_count++;
+ /*
+ * This happens when the remote CPU is slow at responding and the
+ * caller gave up, and has given up the mutex.
+ */
if (mutex_owned(&xpmsg_mutex) == 0) {
cpuinfo.ci_xpmsg_mutex_not_held.ev_count++;
#ifdef DEBUG
- printf("%s: mutex not held\n", __func__);
+ printf("%s: cpu%d mutex not held\n", __func__, cpu_number());
#endif
cpuinfo.msg.complete = 1;
kpreempt_enable();
Home |
Main Index |
Thread Index |
Old Index