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

Peter Zijlstra
2010-10-15T14:28:40Z

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;