Module Name:    src
Committed By:   cherry
Date:           Wed Oct 17 03:43:24 UTC 2018

Modified Files:
        src/sys/arch/xen/xen: xenevt.c

Log Message:
The known_mpsafe parameter is used by intr.c:intr_establish_xname()
especially in the non -D MULTIPROCESSOR case. We used it incorrectly.

Fix this.


To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 src/sys/arch/xen/xen/xenevt.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/xen/xen/xenevt.c
diff -u src/sys/arch/xen/xen/xenevt.c:1.49 src/sys/arch/xen/xen/xenevt.c:1.50
--- src/sys/arch/xen/xen/xenevt.c:1.49	Wed Oct 10 03:54:54 2018
+++ src/sys/arch/xen/xen/xenevt.c	Wed Oct 17 03:43:24 2018
@@ -1,4 +1,4 @@
-/*      $NetBSD: xenevt.c,v 1.49 2018/10/10 03:54:54 cherry Exp $      */
+/*      $NetBSD: xenevt.c,v 1.50 2018/10/17 03:43:24 cherry Exp $      */
 
 /*
  * Copyright (c) 2005 Manuel Bouyer.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xenevt.c,v 1.49 2018/10/10 03:54:54 cherry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xenevt.c,v 1.50 2018/10/17 03:43:24 cherry Exp $");
 
 #include "opt_xen.h"
 #include <sys/param.h>
@@ -163,11 +163,7 @@ xenevtattach(int n)
 {
 	struct intrhand *ih;
 	int level = IPL_HIGH;
-#ifdef MULTIPROCESSOR
 	bool mpsafe = (level != IPL_VM);
-#else
-	bool mpsafe = false;
-#endif /* MULTIPROCESSOR */
 
 	mutex_init(&devevent_lock, MUTEX_DEFAULT, IPL_HIGH);
 	STAILQ_INIT(&devevent_pending);

Reply via email to