Re: [PATCH 4/8] Add IRQ_TIME_ACCOUNTING, finer accounting of irqtime -v4

From: Peter Zijlstra
Date: Fri Oct 15 2010 - 10:28:43 EST


On Mon, 2010-10-04 at 17:03 -0700, Venkatesh Pallipadi wrote:
> + if (hardirq_count())

if (in_irq())

to match the (mangled) in_serving_softirq() ?

> + per_cpu(cpu_hardirq_time, cpu) += delta;
> + else if (in_serving_softirq() && !(curr->flags & PF_KSOFTIRQD))
> + per_cpu(cpu_softirq_time, cpu) += delta;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/