From: Heiko Carstens <hca@linux.ibm.com>
To: Frederic Weisbecker <frederic@kernel.org>,
Alexander Gordeev <agordeev@linux.ibm.com>,
Sven Schnelle <svens@linux.ibm.com>,
Vasily Gorbik <gor@linux.ibm.com>,
Christian Borntraeger <borntraeger@linux.ibm.com>
Cc: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org
Subject: [RFC PATCH 0/3] s390: Idle time accounting improvements
Date: Wed, 25 Feb 2026 15:51:43 +0100 [thread overview]
Message-ID: <20260225145146.1031705-1-hca@linux.ibm.com> (raw)
This series is on top of Frederic Weisbecker's idle cputime accounting
refactor series.
The first patch is a fix and should be merged into the corresponding patch of
the series.
The second patch is supposed to improve s390 idle time accounting, and bring
it back to the state it is was before arch_cpu_idle_time() was removed [2].
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).
The code doesn't look too nice, and, as usual, might contain bugs. Therefore
this is an RFC. Maybe the outcome is also to drop this, and stay with
Frederic's code as s390 backend.
Thanks,
Heiko
[1] https://lore.kernel.org/all/20260206142245.58987-1-frederic@kernel.org/
[2] commit be76ea614460 ("s390/idle: remove arch_cpu_idle_time() and corresponding code")
Heiko Carstens (3):
fixup! s390/time: Prepare to stop elapsing in dynticks-idle
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 | 11 ++--
arch/s390/include/asm/lowcore.h | 9 +--
arch/s390/include/asm/timex.h | 20 +-----
arch/s390/include/asm/tod_types.h | 30 +++++++++
arch/s390/kernel/asm-offsets.c | 5 ++
arch/s390/kernel/entry.S | 7 +-
arch/s390/kernel/idle.c | 105 +++++++++++++++++++++---------
arch/s390/kernel/irq.c | 2 +-
arch/s390/kernel/setup.c | 1 +
arch/s390/kernel/smp.c | 33 +---------
arch/s390/kernel/vtime.c | 37 -----------
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, 166 insertions(+), 135 deletions(-)
create mode 100644 arch/s390/include/asm/tod_types.h
--
2.51.0
next reply other threads:[~2026-02-25 14:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-25 14:51 Heiko Carstens [this message]
2026-02-25 14:51 ` [RFC PATCH 1/3] fixup! s390/time: Prepare to stop elapsing in dynticks-idle Heiko Carstens
2026-03-11 15:14 ` Frederic Weisbecker
2026-02-25 14:51 ` [RFC PATCH 2/3] s390/idle: Provide arch specific kcpustat_field_idle()/kcpustat_field_iowait() Heiko Carstens
2026-03-11 16:13 ` Frederic Weisbecker
2026-03-20 12:30 ` Heiko Carstens
2026-02-25 14:51 ` [RFC PATCH 3/3] s390/idle: Remove idle time and count sysfs files Heiko Carstens
2026-03-11 16:14 ` Frederic Weisbecker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260225145146.1031705-1-hca@linux.ibm.com \
--to=hca@linux.ibm.com \
--cc=agordeev@linux.ibm.com \
--cc=borntraeger@linux.ibm.com \
--cc=frederic@kernel.org \
--cc=gor@linux.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=svens@linux.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox