Skip to content

Commit 7ad9469

Browse files
Finn Thainmpe
authored andcommitted
macintosh/via-pmu: Don't clear shift register interrupt flag twice
The shift register interrupt flag gets cleared in via_pmu_interrupt() and once again in pmu_sr_intr(). Fix this theoretical race condition. Tested-by: Stan Johnson <userm57@yahoo.com> Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent 576d529 commit 7ad9469

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/macintosh/via-pmu.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1421,7 +1421,6 @@ pmu_sr_intr(void)
14211421

14221422
if (in_8(&via[B]) & TREQ) {
14231423
printk(KERN_ERR "PMU: spurious SR intr (%x)\n", in_8(&via[B]));
1424-
out_8(&via[IFR], SR_INT);
14251424
return NULL;
14261425
}
14271426
/* The ack may not yet be low when we get the interrupt */

0 commit comments

Comments
 (0)