Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/xen/x86 Do not panic() on xen_send_ipi() sent to a ...



details:   https://anonhg.NetBSD.org/src/rev/cbb0fe001520
branches:  trunk
changeset: 768373:cbb0fe001520
user:      cherry <cherry%NetBSD.org@localhost>
date:      Mon Aug 15 20:14:52 2011 +0000

description:
Do not panic() on xen_send_ipi() sent to a cpu not yet running.
x86 MP boot depends on this strange behaviour.

diffstat:

 sys/arch/xen/x86/cpu.c |  9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diffs (28 lines):

diff -r f81261ae8073 -r cbb0fe001520 sys/arch/xen/x86/cpu.c
--- a/sys/arch/xen/x86/cpu.c    Mon Aug 15 18:31:20 2011 +0000
+++ b/sys/arch/xen/x86/cpu.c    Mon Aug 15 20:14:52 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.c,v 1.62 2011/08/13 12:37:30 cherry Exp $  */
+/*     $NetBSD: cpu.c,v 1.63 2011/08/15 20:14:52 cherry Exp $  */
 /* NetBSD: cpu.c,v 1.18 2004/02/20 17:35:01 yamt Exp  */
 
 /*-
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.62 2011/08/13 12:37:30 cherry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.63 2011/08/15 20:14:52 cherry Exp $");
 
 #include "opt_ddb.h"
 #include "opt_multiprocessor.h"
@@ -1292,8 +1292,5 @@
 void
 cpu_kick(struct cpu_info *ci)
 {
-       if (xen_send_ipi(ci, XEN_IPI_KICK) != 0) {
-               panic("xen_send_ipi(%s, XEN_IPI_KICK) failed\n",
-                   cpu_name(ci));
-       }
+       xen_send_ipi(ci, XEN_IPI_KICK);
 }



Home | Main Index | Thread Index | Old Index