Skip to content

s390: Idle time accounting improvements

Heiko Carstens linux-s390 lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4s390/timex: Move union tod_clock type to separate headerarch/s390/include/asm/timex.h arch/s390/include/asm/tod_types.h+31 -190 replies
2/4s390/irq/idle: Use stcke instead of stckf for time stampsarch/s390/include/asm/idle.h arch/s390/include/asm/lowcore.h arch/s390/include/asm/vtime.h +5 more+15 -130 replies
3/4s390/idle: Provide arch specific kcpustat_field_idle()/kcpustat_field_iowait()arch/s390/include/asm/idle.h arch/s390/kernel/asm-offsets.c arch/s390/kernel/entry.S +5 more+158 -672 replies
4/4s390/idle: Remove idle time and count sysfs filesarch/s390/include/asm/idle.h arch/s390/kernel/idle.c arch/s390/kernel/smp.c+1 -580 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchFrederic Weisbecker
SeriesA-b
1/4
2/4
3/4
4/4

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/4] s390: Idle time accounting improvements

This series is on top of Frederic Weisbecker's idle cpu time accounting refactor series [1][2].

This is supposed to improve s390 idle time accounting, and brings it back to the state it was before arch_cpu_idle_time() was removed from s390 [3].

In result all cpu time accounting is done by the s390 architecture backend again, instead of having a mix of architecure specific and common code accounting (common code: idle, s390 architecture: everything else).

Changes since RFC [4]:

- Split into more patches

- Fix various build errors for !CONFIG_NO_HZ_COMMON

- Get rid of private seqcount implementation and access seqcount from kernel_cpustat directly from assembler code, as suggested by Frederic Weisbecker

[1] https://lore.kernel.org/all/[email protected]/
[2] git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git timers/core-v4
[3] commit be76ea614460 ("s390/idle: remove arch_cpu_idle_time() and corresponding code")
[4] https://lore.kernel.org/all/[email protected]/

Heiko Carstens (4):
s390/timex: Move union tod_clock type to separate header s390/irq/idle: Use stcke instead of stckf for time stamps s390/idle: Provide arch specific kcpustat_field_idle()/kcpustat_field_iowait() s390/idle: Remove idle time and count sysfs files

 arch/s390/include/asm/idle.h      |  14 ++--
 arch/s390/include/asm/lowcore.h   |   4 +-
 arch/s390/include/asm/timex.h     |  20 +----
 arch/s390/include/asm/tod_types.h |  30 +++++++
 arch/s390/include/asm/vtime.h     |   4 +-
 arch/s390/kernel/asm-offsets.c    |   7 ++
 arch/s390/kernel/entry.S          |  14 +++-
 arch/s390/kernel/idle.c           | 129 +++++++++++++++++++++++-------
 arch/s390/kernel/irq.c            |   7 +-
 arch/s390/kernel/smp.c            |  33 +-------
 arch/s390/kernel/vtime.c          |  55 +------------
 drivers/s390/cio/qdio_main.c      |   2 +-
 drivers/s390/cio/qdio_thinint.c   |   2 +-
 include/linux/kernel_stat.h       |  27 +++++++
 include/linux/vtime.h             |   6 ++
 kernel/sched/cputime.c            |   4 +-
 16 files changed, 203 insertions(+), 155 deletions(-)
 create mode 100644 arch/s390/include/asm/tod_types.h

base-commit: e64ba052ce04e363ff76d3cb8bedc5f812188acb

Signature · 1 line
2.51.0