Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/xen add known_mpsafe parameter also to pirq_establi...
details: https://anonhg.NetBSD.org/src/rev/b46ce4bcf3e5
branches: trunk
changeset: 1008953:b46ce4bcf3e5
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Mon Apr 06 19:26:00 2020 +0000
description:
add known_mpsafe parameter also to pirq_establish(), and pass the parameter
to underlying event_set_handler()
diffstat:
sys/arch/xen/include/evtchn.h | 4 ++--
sys/arch/xen/x86/xen_intr.c | 6 +++---
sys/arch/xen/xen/evtchn.c | 8 ++++----
3 files changed, 9 insertions(+), 9 deletions(-)
diffs (81 lines):
diff -r 67322bc06c03 -r b46ce4bcf3e5 sys/arch/xen/include/evtchn.h
--- a/sys/arch/xen/include/evtchn.h Mon Apr 06 18:23:21 2020 +0000
+++ b/sys/arch/xen/include/evtchn.h Mon Apr 06 19:26:00 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: evtchn.h,v 1.27 2020/04/06 18:02:33 jdolecek Exp $ */
+/* $NetBSD: evtchn.h,v 1.28 2020/04/06 19:26:00 jdolecek Exp $ */
/*
*
@@ -70,7 +70,7 @@
};
struct pintrhand *pirq_establish(int, int, int (*)(void *), void *, int,
- const char *, const char *);
+ const char *, const char *, bool);
void pirq_disestablish(struct pintrhand *);
#endif /* _XEN_EVENTS_H_ */
diff -r 67322bc06c03 -r b46ce4bcf3e5 sys/arch/xen/x86/xen_intr.c
--- a/sys/arch/xen/x86/xen_intr.c Mon Apr 06 18:23:21 2020 +0000
+++ b/sys/arch/xen/x86/xen_intr.c Mon Apr 06 19:26:00 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xen_intr.c,v 1.20 2020/04/06 18:02:33 jdolecek Exp $ */
+/* $NetBSD: xen_intr.c,v 1.21 2020/04/06 19:26:00 jdolecek Exp $ */
/*-
* Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xen_intr.c,v 1.20 2020/04/06 18:02:33 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xen_intr.c,v 1.21 2020/04/06 19:26:00 jdolecek Exp $");
#include "opt_multiprocessor.h"
@@ -231,7 +231,7 @@
}
pih = pirq_establish(gsi, evtchn, handler, arg, level,
- intrstr, xname);
+ intrstr, xname, known_mpsafe);
pih->pic_type = pic->pic_type;
return pih;
#endif /* NPCI > 0 || NISA > 0 */
diff -r 67322bc06c03 -r b46ce4bcf3e5 sys/arch/xen/xen/evtchn.c
--- a/sys/arch/xen/xen/evtchn.c Mon Apr 06 18:23:21 2020 +0000
+++ b/sys/arch/xen/xen/evtchn.c Mon Apr 06 19:26:00 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: evtchn.c,v 1.87 2020/04/06 18:02:33 jdolecek Exp $ */
+/* $NetBSD: evtchn.c,v 1.88 2020/04/06 19:26:00 jdolecek Exp $ */
/*
* Copyright (c) 2006 Manuel Bouyer.
@@ -54,7 +54,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: evtchn.c,v 1.87 2020/04/06 18:02:33 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: evtchn.c,v 1.88 2020/04/06 19:26:00 jdolecek Exp $");
#include "opt_xen.h"
#include "isa.h"
@@ -745,7 +745,7 @@
struct pintrhand *
pirq_establish(int pirq, int evtch, int (*func)(void *), void *arg, int level,
- const char *intrname, const char *xname)
+ const char *intrname, const char *xname, bool known_mpsafe)
{
struct pintrhand *ih;
@@ -764,7 +764,7 @@
ih->arg = arg;
if (event_set_handler(evtch, pirq_interrupt, ih, level, intrname,
- xname) != 0) {
+ xname, known_mpsafe) != 0) {
kmem_free(ih, sizeof(struct pintrhand));
return NULL;
}
Home |
Main Index |
Thread Index |
Old Index