irq plugin: Force 32bit wrap-around.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Fri, 1 May 2009 14:34:30 +0000 (16:34 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Fri, 1 May 2009 14:34:30 +0000 (16:34 +0200)
src/irq.c

index 38304fc..a7efd36 100644 (file)
--- a/src/irq.c
+++ b/src/irq.c
@@ -191,8 +191,10 @@ static int irq_read (void)
                        irq_value += value;
                } /* for (i) */
 
-               irq_submit (irq, irq_value);
+               /* Force 32bit wrap-around */
+               irq_submit (irq, irq_value % 4294967296ULL);
        }
+
        fclose (fh);
 
        return (0);