powertop: IPIs and hw irqs were swapped, fixing
authorDenys Vlasenko <dvlasenk@redhat.com>
Tue, 26 Oct 2010 10:42:53 +0000 (12:42 +0200)
committerDenys Vlasenko <dvlasenk@redhat.com>
Tue, 26 Oct 2010 10:42:53 +0000 (12:42 +0200)
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
procps/powertop.c

index 5792048dca9939ab9e575a737f5dd76e2813078c..3d98b9bdaaf47b9e37cb96878c765b67c641955c 100644 (file)
@@ -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);