Skip to content

irq: Reorder time handling against HARDIRQ_OFFSET on IRQ entry v3

Frederic Weisbecker lkml 1 version Applied

Status from this message: The following commit has been merged into the irq/core branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 8 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5sched/cputime: Remove symbol exports from IRQ time accountingarch/s390/kernel/vtime.c kernel/sched/cputime.c+5 -71 reply
2/5s390/vtime: Use the generic IRQ entry accountingarch/Kconfig arch/s390/Kconfig arch/s390/include/asm/vtime.h +2 more+9 -171 reply
3/5sched/vtime: Consolidate IRQ time accountingarch/ia64/kernel/time.c arch/powerpc/kernel/time.c arch/s390/kernel/vtime.c +2 more+106 -520 replies
4/5irqtime: Move irqtime entry accounting after irq offset incrementationinclude/linux/hardirq.h include/linux/vtime.h kernel/sched/cputime.c +1 more+40 -226 replies
5/5irq: Call tick_irq_enter() inside HARDIRQ_OFFSETkernel/softirq.c+5 -90 replies

Reviews trailers per patch

3 of 5 patches have a Reviewed-by or Acked-by.

PatchPeter Zijlstra (Intel)Christian Borntraeger
1/5A-b
2/5A-b
3/5
4/5A-b
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] irq: Reorder time handling against HARDIRQ_OFFSET on IRQ entry v3

Slightly different design this time. As per Peter and Thomas reviews and suggestions, use the following layout:

  account_softirq_enter() -> irqtime_account_irq(curr, SOFTIRQ_OFFSET);
  account_softirq_exit()  -> irqtime_account_irq(curr, 0);
  account_hardirq_enter() -> irqtime_account_irq(curr, HARDIRQ_OFFSET);
  account_hardirq_exit()  -> irqtime_account_irq(curr, 0);

So now the preempt count offset is substracted in the cputime dispatch function and the resulting code is better consolidated.

git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git

	irq/core-v3

HEAD: 24a2d6c76759bd4496cbdcd365012c821a984eec

Thanks,
Frederic
---

Frederic Weisbecker (5):
sched/cputime: Remove symbol exports from IRQ time accounting s390/vtime: Use the generic IRQ entry accounting sched/vtime: Consolidate IRQ time accounting
irqtime: Move irqtime entry accounting after irq offset incrementation
irq: Call tick_irq_enter() inside HARDIRQ_OFFSET

 arch/Kconfig                  |  7 +++++-
 arch/ia64/kernel/time.c       | 20 ++++++++++++----
 arch/powerpc/kernel/time.c    | 56 ++++++++++++++++++++++++++++++-------------
 arch/s390/Kconfig             |  1 +
 arch/s390/include/asm/vtime.h |  1 -
 arch/s390/kernel/vtime.c      | 51 +++++++++++++++++++++++++--------------
 include/linux/hardirq.h       |  4 ++--
 include/linux/vtime.h         | 42 +++++++++++++++++++-------------
 kernel/sched/cputime.c        | 36 +++++++++++++---------------
 kernel/softirq.c              | 20 +++++++---------
 10 files changed, 148 insertions(+), 90 deletions(-)