powertop: IPIs and hw irqs were swapped, fixing

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
This commit is contained in:
Denys Vlasenko 2010-10-26 12:42:53 +02:00
parent c3f1fa10d6
commit d8b687f992

View 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);