From f5fb4ec2134f81ca8e55d22aecb03aebafad9d08 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Fri, 1 Feb 2002 22:23:27 +0000 Subject: [PATCH] fixed race in interrupt handler --- comedi/drivers/das16.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) -- 2.26.2