summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko2010-10-26 12:42:53 +0200
committerDenys Vlasenko2010-10-26 12:42:53 +0200
commitd8b687f99257772f62edd7c4641427280841e1c5 (patch)
tree0d8330a6510dbbb67c3a3e0602386ba481a22af2
parentc3f1fa10d601eb5e1b92f55fb49bbd59cde71705 (diff)
downloadbusybox-d8b687f99257772f62edd7c4641427280841e1c5.zip
busybox-d8b687f99257772f62edd7c4641427280841e1c5.tar.gz
powertop: IPIs and hw irqs were swapped, fixing
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
-rw-r--r--procps/powertop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/procps/powertop.c b/procps/powertop.c
index 5792048..3d98b9b 100644
--- a/procps/powertop.c
+++ b/procps/powertop.c
@@ -376,7 +376,7 @@ static void process_irq_counts(void)
name = p;
strchrnul(name, '\n')[0] = '\0';
/* Save description of the interrupt */
- if (nr < 20000)
+ if (nr >= 20000)
sprintf(irq_desc, " <kernel IPI> : %s", name);
else
sprintf(irq_desc, " <interrupt> : %s", name);