Module Name: src
Committed By: mrg
Date: Mon May 31 03:16:47 UTC 2010
Modified Files:
src/sys/arch/sparc/sparc: cpu.c
Log Message:
add #if 0'ed implementation of xc_send_ipi(), to be used shortly.
To generate a diff of this commit:
cvs rdiff -u -r1.221 -r1.222 src/sys/arch/sparc/sparc/cpu.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/sparc/sparc/cpu.c
diff -u src/sys/arch/sparc/sparc/cpu.c:1.221 src/sys/arch/sparc/sparc/cpu.c:1.222
--- src/sys/arch/sparc/sparc/cpu.c:1.221 Sat Jan 23 16:06:57 2010
+++ src/sys/arch/sparc/sparc/cpu.c Mon May 31 03:16:47 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.c,v 1.221 2010/01/23 16:06:57 mrg Exp $ */
+/* $NetBSD: cpu.c,v 1.222 2010/05/31 03:16:47 mrg Exp $ */
/*
* Copyright (c) 1996
@@ -52,7 +52,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.221 2010/01/23 16:06:57 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.222 2010/05/31 03:16:47 mrg Exp $");
#include "opt_multiprocessor.h"
#include "opt_lockdebug.h"
@@ -65,6 +65,9 @@
#include <sys/malloc.h>
#include <sys/simplelock.h>
#include <sys/kernel.h>
+#if 0
+#include <sys/xcall.h>
+#endif
#include <uvm/uvm.h>
@@ -637,6 +640,26 @@
mutex_spin_exit(&xpmsg_mutex);
}
+#if 0
+/*
+ * MI interface to call xc_ipi_handler() everywhere.
+ */
+void
+xc_send_ipi(struct cpu_info *target)
+{
+ u_int cpuset;
+
+ KASSERT(kpreempt_disabled());
+ KASSERT(curcpu() != target);
+
+ if (target)
+ cpuset = 1 << target->ci_cpuid;
+ else
+ cpuset = CPUSET_ALL & ~(1 << cpuinfo.ci_cpuid);
+ XCALL0(xc_ipi_handler, cpuset);
+}
+#endif
+
/*
* Tell all CPUs other than the current one to enter the PROM idle loop.
*/