c4b8403e23
When there was more than one leading spaces in the beginning of line, irq database was forced to rebuild. Signed-off-by: Petr Holasek <pholasek@redhat.com> Signed-offy-by: Neil Horman <nhorman@tuxdriver.com> --- procinterrupts.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/procinterrupts.c b/procinterrupts.c index d5555f2..2c1bb25 100644 --- a/procinterrupts.c +++ b/procinterrupts.c @@ -25,6 +25,7 @@ #include <stdint.h> #include <string.h> #include <syslog.h> +#include <ctype.h> #include "cpumask.h" #include "irqbalance.h" @@ -66,7 +67,10 @@ void parse_proc_interrupts(void) proc_int_has_msi = 1; /* lines with letters in front are special, like NMI count. Ignore */ - if (!(line[0]==' ' || (line[0]>='0' && line[0]<='9'))) + c = line; + while (isblank(*(c++))) + ; + if (!(*c>='0' && *c<='9')) break; c = strchr(line, ':'); if (!c) -- 1.7.6.4 |
||
---|---|---|
misc | ||
activate.c | ||
AUTHORS | ||
autogen.sh | ||
bitmap.c | ||
bitmap.h | ||
cap-ng.m4 | ||
ChangeLog | ||
classify.c | ||
configure.ac | ||
constants.h | ||
COPYING | ||
cpumask.h | ||
cputree.c | ||
irqbalance.1 | ||
irqbalance.c | ||
irqbalance.h | ||
irqlist.c | ||
Makefile.am | ||
NEWS | ||
non-atomic.h | ||
numa.c | ||
placement.c | ||
powermode.c | ||
procinterrupts.c | ||
README | ||
types.h |