From: Frank Mori Hess Date: Fri, 1 Feb 2002 22:23:27 +0000 (+0000) Subject: fixed race in interrupt handler X-Git-Tag: r0_7_64~161 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f5fb4ec2134f81ca8e55d22aecb03aebafad9d08;p=comedi.git fixed race in interrupt handler --- diff --git a/comedi/drivers/das16.c b/comedi/drivers/das16.c index b2501037..b1a55c94 100644 --- a/comedi/drivers/das16.c +++ b/comedi/drivers/das16.c @@ -1088,6 +1088,9 @@ static void das16_interrupt(int irq, void *d, struct pt_regs *regs) return; } + /* clear interrupt */ + outb(0x00, dev->iobase + DAS16_STATUS); + flags = claim_dma_lock(); disable_dma(devpriv->dma_chan); /* clear flip-flop to make sure 2-byte registers for @@ -1149,9 +1152,6 @@ static void das16_interrupt(int irq, void *d, struct pt_regs *regs) } comedi_event(dev, s, async->events); - - /* clear interrupt */ - outb(0x00, dev->iobase + DAS16_STATUS); } static unsigned int das16_set_pacer(comedi_device *dev, unsigned int ns, int rounding_flags)