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 just pass true as known_mpsafe for interrup...



details:   https://anonhg.NetBSD.org/src/rev/e96d5f612a7d
branches:  trunk
changeset: 1008949:e96d5f612a7d
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Mon Apr 06 17:55:51 2020 +0000

description:
just pass true as known_mpsafe for interrupt establish, drop the
(level != IPL_VM); NFCI, this uses IPL_HIGH so was mpsafe already

diffstat:

 sys/arch/xen/xen/xenevt.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r 95fb777c181a -r e96d5f612a7d sys/arch/xen/xen/xenevt.c
--- a/sys/arch/xen/xen/xenevt.c Mon Apr 06 16:43:34 2020 +0000
+++ b/sys/arch/xen/xen/xenevt.c Mon Apr 06 17:55:51 2020 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: xenevt.c,v 1.54 2019/11/22 14:30:58 martin Exp $      */
+/*      $NetBSD: xenevt.c,v 1.55 2020/04/06 17:55:51 jdolecek Exp $      */
 
 /*
  * Copyright (c) 2005 Manuel Bouyer.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xenevt.c,v 1.54 2019/11/22 14:30:58 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xenevt.c,v 1.55 2020/04/06 17:55:51 jdolecek Exp $");
 
 #include "opt_xen.h"
 #include <sys/param.h>
@@ -163,7 +163,6 @@
 {
        struct intrhand *ih __diagused;
        int level = IPL_HIGH;
-       bool mpsafe = (level != IPL_VM);
 
        mutex_init(&devevent_lock, MUTEX_DEFAULT, IPL_HIGH);
        STAILQ_INIT(&devevent_pending);
@@ -184,7 +183,7 @@
 
        /* The real objective here is to wiggle into the ih callchain for IPL level */
        ih = xen_intr_establish_xname(-1, &xen_pic, evtchn,  IST_LEVEL, level,
-           xenevt_processevt, NULL, mpsafe, "xenevt");
+           xenevt_processevt, NULL, true, "xenevt");
 
        KASSERT(ih != NULL);
 }



Home | Main Index | Thread Index | Old Index