Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/xen/xen The known_mpsafe parameter is used by intr....



details:   https://anonhg.NetBSD.org/src/rev/34f7baa01548
branches:  trunk
changeset: 836430:34f7baa01548
user:      cherry <cherry%NetBSD.org@localhost>
date:      Wed Oct 17 03:43:24 2018 +0000

description:
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.

diffstat:

 sys/arch/xen/xen/xenevt.c |  8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diffs (30 lines):

diff -r 46e539cde902 -r 34f7baa01548 sys/arch/xen/xen/xenevt.c
--- a/sys/arch/xen/xen/xenevt.c Wed Oct 17 01:16:50 2018 +0000
+++ b/sys/arch/xen/xen/xenevt.c Wed Oct 17 03:43:24 2018 +0000
@@ -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 @@
 {
        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);



Home | Main Index | Thread Index | Old Index