Skip to content

cputime: Fixes and cleanups on steal time accounting

Frederic Weisbecker linux-arch lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6cputime: Fix nsecs_to_cputime() return type castinclude/asm-generic/cputime_nsecs.h+2 -12 replies
2/6cputime: Default implementation of nsecs -> cputime conversiondrivers/cpufreq/cpufreq_stats.c drivers/s390/cio/cio.c fs/proc/stat.c +4 more+17 -61 reply
3/6cputime: Bring cputime -> nsecs conversioninclude/asm-generic/cputime_jiffies.h include/asm-generic/cputime_nsecs.h include/linux/cputime.h+10 -11 reply
4/6cputime: Fix jiffies based cputime assumption on steal accountingkernel/sched/cputime.c+6 -51 reply
5/6sched: Remove needless round trip nsecs <-> tick conversion of steal timekernel/sched/core.c kernel/sched/sched.h+0 -161 reply
6/6arch: Remove stub cputime.h headersarch/alpha/include/asm/Kbuild arch/alpha/include/asm/cputime.h arch/cris/include/asm/Kbuild +13 more+8 -341 reply

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchRik van Riel
1/6A-b
2/6A-b
3/6A-b
4/6A-b
5/6A-b
6/6A-b

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/6] cputime: Fixes and cleanups on steal time accounting

Hi,

The main purpose of this set is to fix a bug on full dynticks configs where steal time accounting appears to be zero in /proc/stat even after a few seconds of competing guests running busy loops in a same host CPU. It's not a regression though as it was there since the beginning with full dynticks.

So patch [4/6] is the most important. The rest is preparatory work to fix the bug and various cleanups.

Thanks.

---
git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git
timers/cputime-fix-steal

Frederic Weisbecker (6):
cputime: Fix nsecs_to_cputime() return type cast
cputime: Default implementation of nsecs -> cputime conversion
cputime: Bring cputime -> nsecs conversion
cputime: Fix jiffies based cputime assumption on steal accounting
sched: Remove needless round trip nsecs <-> tick conversion of steal
time
arch: Remove stub cputime.h headers

 arch/alpha/include/asm/Kbuild         |  1 +
 arch/alpha/include/asm/cputime.h      |  6 ------
 arch/cris/include/asm/Kbuild          |  1 +
 arch/cris/include/asm/cputime.h       |  6 ------
 arch/frv/include/asm/Kbuild           |  1 +
 arch/frv/include/asm/cputime.h        |  6 ------
 arch/m32r/include/asm/Kbuild          |  1 +
 arch/m32r/include/asm/cputime.h       |  6 ------
 arch/microblaze/include/asm/Kbuild    |  1 +
 arch/microblaze/include/asm/cputime.h |  1 -
 arch/mn10300/include/asm/Kbuild       |  1 +
 arch/mn10300/include/asm/cputime.h    |  1 -
 arch/score/include/asm/Kbuild         |  2 +-
 arch/score/include/asm/cputime.h      |  6 ------
 arch/x86/include/asm/Kbuild           |  1 +
 arch/x86/include/asm/cputime.h        |  1 -
 drivers/cpufreq/cpufreq_stats.c       |  2 +-
 drivers/s390/cio/cio.c                |  2 +-
 fs/proc/stat.c                        |  2 +-
 fs/proc/uptime.c                      |  2 +-
 include/asm-generic/cputime_jiffies.h |  4 +++-
 include/asm-generic/cputime_nsecs.h   |  5 ++++-
 include/linux/cputime.h               | 16 ++++++++++++++++
 include/linux/kernel_stat.h           |  2 +-
 include/linux/sched.h                 |  2 +-
 kernel/sched/core.c                   |  6 ------
 kernel/sched/cputime.c                | 11 ++++++-----
 kernel/sched/sched.h                  | 10 ----------
 28 files changed, 43 insertions(+), 63 deletions(-)
 delete mode 100644 arch/alpha/include/asm/cputime.h
 delete mode 100644 arch/cris/include/asm/cputime.h
 delete mode 100644 arch/frv/include/asm/cputime.h
 delete mode 100644 arch/m32r/include/asm/cputime.h
 delete mode 100644 arch/microblaze/include/asm/cputime.h
 delete mode 100644 arch/mn10300/include/asm/cputime.h
 delete mode 100644 arch/score/include/asm/cputime.h
 delete mode 100644 arch/x86/include/asm/cputime.h
 create mode 100644 include/linux/cputime.h
Signature · 1 line
1.8.3.1