From 3d4319f8ec237226f85e05848650a0f14f5cf2ab Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 1 May 2009 16:34:30 +0200 Subject: [PATCH] irq plugin: Force 32bit wrap-around. --- src/irq.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/irq.c b/src/irq.c index 38304fca..a7efd36f 100644 --- 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); -- 2.11.0