From 91fbf283d2c180105c4729907ea9d2079c6d93f7 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sun, 2 Aug 2015 20:54:51 +0200 Subject: [PATCH] irq: skip FIQ line in /proc/interrupts /proc/interrupts on my Raspberry PI contains: FIQ: usb_fiq This line doesn't contain any per cpu counters but we try to parse it anyway, resulting in: parse_value: Failed to parse string as derive: usb_fiq. Fixes #971 --- src/irq.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/irq.c b/src/irq.c index 1168b979..6afacf0d 100644 --- a/src/irq.c +++ b/src/irq.c @@ -155,6 +155,10 @@ static int irq_read (void) if (irq_name[irq_name_len - 1] != ':') continue; + /* Is it the the ARM fast interrupt (FIQ)? */ + if (irq_name_len == 4 && (strncmp(irq_name, "FIQ:", 4) == 0)) + continue; + irq_name[irq_name_len - 1] = 0; irq_name_len--; -- 2.11.0