diff options
author | andre <andre@FreeBSD.org> | 2012-10-26 17:31:35 +0000 |
---|---|---|
committer | andre <andre@FreeBSD.org> | 2012-10-26 17:31:35 +0000 |
commit | a8b2ff5af71d9d7536b37f7255566c36f5bccf1f (patch) | |
tree | 9492a84eb464de435974af90f099125c5fc65d0a /sys/xen/evtchn | |
parent | cc93b91b81aa385b660a4d4fa680acec2e2eb002 (diff) | |
download | FreeBSD-src-a8b2ff5af71d9d7536b37f7255566c36f5bccf1f.zip FreeBSD-src-a8b2ff5af71d9d7536b37f7255566c36f5bccf1f.tar.gz |
Move the corresponding MTX_SYSINIT() next to their struct mtx declaration
to make their relationship more obvious as done with the other such mutexs.
Diffstat (limited to 'sys/xen/evtchn')
-rw-r--r-- | sys/xen/evtchn/evtchn.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/sys/xen/evtchn/evtchn.c b/sys/xen/evtchn/evtchn.c index b4053eb..eb18b57 100644 --- a/sys/xen/evtchn/evtchn.c +++ b/sys/xen/evtchn/evtchn.c @@ -44,7 +44,15 @@ static inline unsigned long __ffs(unsigned long word) return word; } +/* + * irq_mapping_update_lock: in order to allow an interrupt to occur in a critical + * section, to set pcpu->ipending (etc...) properly, we + * must be able to get the icu lock, so it can't be + * under witness. + */ static struct mtx irq_mapping_update_lock; +MTX_SYSINIT(irq_mapping_update_lock, &irq_mapping_update_lock, "xp", MTX_SPIN); + static struct xenpic *xp; struct xenpic_intsrc { struct intsrc xp_intsrc; @@ -1130,11 +1138,4 @@ evtchn_init(void *dummy __unused) } SYSINIT(evtchn_init, SI_SUB_INTR, SI_ORDER_MIDDLE, evtchn_init, NULL); - /* - * irq_mapping_update_lock: in order to allow an interrupt to occur in a critical - * section, to set pcpu->ipending (etc...) properly, we - * must be able to get the icu lock, so it can't be - * under witness. - */ -MTX_SYSINIT(irq_mapping_update_lock, &irq_mapping_update_lock, "xp", MTX_SPIN); |