Re: [PATCH] sched/cputime: Fix ksoftirqd cputime accounting regression

2017-04-26 Thread Rik van Riel
On Tue, 2017-04-25 at 16:10 +0200, Frederic Weisbecker wrote: > irq_time_read() returns the irqtime minus the ksoftirqd time. This > is necessary because irq_time_read() is used to substract the IRQ > time > from the sum_exec_runtime of a task. If we were to include the > softirq > time of

Re: [PATCH] sched/cputime: Fix ksoftirqd cputime accounting regression

2017-04-26 Thread Rik van Riel
On Tue, 2017-04-25 at 16:10 +0200, Frederic Weisbecker wrote: > irq_time_read() returns the irqtime minus the ksoftirqd time. This > is necessary because irq_time_read() is used to substract the IRQ > time > from the sum_exec_runtime of a task. If we were to include the > softirq > time of

Re: [PATCH] sched/cputime: Fix ksoftirqd cputime accounting regression

2017-04-26 Thread Jesper Dangaard Brouer
On Tue, 25 Apr 2017 16:10:48 +0200 Frederic Weisbecker wrote: > irq_time_read() returns the irqtime minus the ksoftirqd time. This > is necessary because irq_time_read() is used to substract the IRQ time > from the sum_exec_runtime of a task. If we were to include the softirq

Re: [PATCH] sched/cputime: Fix ksoftirqd cputime accounting regression

2017-04-26 Thread Jesper Dangaard Brouer
On Tue, 25 Apr 2017 16:10:48 +0200 Frederic Weisbecker wrote: > irq_time_read() returns the irqtime minus the ksoftirqd time. This > is necessary because irq_time_read() is used to substract the IRQ time > from the sum_exec_runtime of a task. If we were to include the softirq > time of

[PATCH] sched/cputime: Fix ksoftirqd cputime accounting regression

2017-04-25 Thread Frederic Weisbecker
irq_time_read() returns the irqtime minus the ksoftirqd time. This is necessary because irq_time_read() is used to substract the IRQ time from the sum_exec_runtime of a task. If we were to include the softirq time of ksoftirqd, this task would substract its own CPU time everytime it updates

[PATCH] sched/cputime: Fix ksoftirqd cputime accounting regression

2017-04-25 Thread Frederic Weisbecker
irq_time_read() returns the irqtime minus the ksoftirqd time. This is necessary because irq_time_read() is used to substract the IRQ time from the sum_exec_runtime of a task. If we were to include the softirq time of ksoftirqd, this task would substract its own CPU time everytime it updates