From 309971e12ed5f4dbb4663595bad04583cc4b11ef Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Fri, 13 Jun 2003 21:30:29 +0000 Subject: [PATCH] Add a comment about the MPSAFEness of this pccard_intr handler. Given how we registered pccard_intr, it is MPSAFE. However, since we register the pccard_intr handler with the flags of the ISR we call, that is the gating factor. We need do nothing specific here. Prompted by: seeing pccard_intr in a panic. --- sys/dev/pccard/pccard.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/dev/pccard/pccard.c b/sys/dev/pccard/pccard.c index 471840ee5da3..23533c479cb2 100644 --- a/sys/dev/pccard/pccard.c +++ b/sys/dev/pccard/pccard.c @@ -1202,6 +1202,10 @@ pccard_intr(void *arg) * the interrupt will pacify the card enough to keep an * interrupt storm from happening. Of course this won't * help in the non-MFC case. + * + * This has no impact for MPSAFEness of the client drivers. + * We register this with whatever flags the intr_handler + * was registered with. All these functions are MPSAFE. */ if (pccard_mfc(pf->sc)) { reg = pccard_ccr_read(pf, PCCARD_CCR_STATUS);