X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Firq.c;h=0f1d3f0ce50954ffd7d4524a52cd36d5bd884744;hb=6fc6255c95b966014ee02a2a37666b2c4880ff8d;hp=1168b979e07688a995a1a7e640c5237a28df8641;hpb=ab55c79a0fee35932995d9f492730dc131034d52;p=collectd.git diff --git a/src/irq.c b/src/irq.c index 1168b979..0f1d3f0c 100644 --- a/src/irq.c +++ b/src/irq.c @@ -22,9 +22,9 @@ **/ #include "collectd.h" + #include "common.h" #include "plugin.h" -#include "configfile.h" #include "utils_ignorelist.h" #if !KERNEL_LINUX @@ -120,6 +120,7 @@ static int irq_read (void) } else { ERROR ("irq plugin: unable to get CPU count from first line " "of /proc/interrupts"); + fclose (fh); return (-1); } @@ -155,6 +156,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--;