Skip to content

RFC sched,time: make irq time accounting work for nohz_idle

[email protected] lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5sched,time: count actually elapsed irq & softirq timekernel/sched/cputime.c+34 -200 replies
2/5nohz,cputime: remove VTIME_GEN vtime irq time codeinclude/linux/vtime.h kernel/sched/cputime.c+45 -420 replies
3/5cputime: allow irq time accounting to be selected as an optioninit/Kconfig+3 -30 replies
4/5irqtime: add irq type parameter to irqtime_account_irqinclude/linux/hardirq.h include/linux/vtime.h kernel/sched/cputime.c +1 more+27 -200 replies
5/5irqtime: drop local_irq_save/restore from irqtime_account_irqkernel/sched/cputime.c+43 -110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH RFC 0/5] sched,time: make irq time accounting work for nohz_idle

This patch series seems to make irq time accounting work with nohz_idle, by having it re-use the same strategy used for steal time accounting in Wanpeng Li's patch.

It applies on top of an earlier version of Wanpeng Li's patch.

It gets rid of some code duplication, but needs a little bit more work. Specifically, selecting CONFIG_IRQ_TIME_ACCOUNTING at the same time as CONFIG_TICK_BASED_ACCOUNTING probably breaks :)

I am posting this because it works, and because I would like to know what other changes I need to make at the same time.