x86/intr: allow mutex recursion in intr_remove_handler
authorroyger <royger@FreeBSD.org>
Wed, 18 Nov 2015 18:09:49 +0000 (18:09 +0000)
committerroyger <royger@FreeBSD.org>
Wed, 18 Nov 2015 18:09:49 +0000 (18:09 +0000)
commitb2573c7bbdae5e07355bc252bd1b41bc54a8dbc7
tree9b19d1d64b501dd98a60e4b55f6c97d41e8c8178
parent3211f5ec1684ecbf62520ed15a5001640e3b8852
x86/intr: allow mutex recursion in intr_remove_handler

This is needed so interrupt handlers can be removed while the PIC is
resuming, it was previously not possible due to intr_resume holding the
intr_table_lock and intr_remove_handler recursing on it.

Sponsored by: Citrix Systems R&D
Reviewed by: kib (previous version)
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D4114
sys/x86/x86/intr_machdep.c