Module Name: src Committed By: jdolecek Date: Mon Apr 6 17:55:51 UTC 2020
Modified Files: src/sys/arch/xen/xen: xenevt.c Log Message: just pass true as known_mpsafe for interrupt establish, drop the (level != IPL_VM); NFCI, this uses IPL_HIGH so was mpsafe already To generate a diff of this commit: cvs rdiff -u -r1.54 -r1.55 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.54 src/sys/arch/xen/xen/xenevt.c:1.55 --- src/sys/arch/xen/xen/xenevt.c:1.54 Fri Nov 22 14:30:58 2019 +++ src/sys/arch/xen/xen/xenevt.c Mon Apr 6 17:55:51 2020 @@ -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 @@ xenevtattach(int n) { 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 @@ xenevtattach(int n) /* 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); }