linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] cputime: some optimizations and cleanups
@ 2016-10-31 12:36 Stanislaw Gruszka
  2016-10-31 12:36 ` [PATCH 1/4] cputime/powerpc: remove cputime_last_delta global variable Stanislaw Gruszka
                   ` (4 more replies)
  0 siblings, 5 replies; 17+ messages in thread
From: Stanislaw Gruszka @ 2016-10-31 12:36 UTC (permalink / raw)
  To: linux-kernel
  Cc: Ingo Molnar, Peter Zijlstra, Frederic Weisbecker, Paul Mackerras,
	Benjamin Herrenschmidt, Michael Neuling, linuxppc-dev,
	Martin Schwidefsky, Heiko Carstens, linux-s390,
	Stanislaw Gruszka

Patches remove accounting of utimescaled/stimescaled on architectures
that do not provide those values (scaled cputimes are equal to normal
cputimes) what is every architecture except powerpc and s390.

Patches do not change user visible behaviour.

There is very little documentation how scaled cputimes should be
interpreted and what useful information they provide (at least
I could not find that). Moreover they are exported to user-space
only via not commonly used taskstats and delayacct interfaces (i.e.
interfaces that are not used by standard linux tools AFICT). However
I assume they can not be removed by whole (i.e. replaced by normal
utimes/stimes on powerpc and s390).

Stanislaw Gruszka (4):
  cputime/powerpc: remove cputime_last_delta global variable
  cputime/powerpc: remove cputime_to_scaled()
  cputime/powerpc/s390: make scaled cputime arch specific
  cputime: simplify task_cputime()

 arch/ia64/kernel/time.c               |    4 +-
 arch/powerpc/Kconfig                  |    1 +
 arch/powerpc/include/asm/cputime.h    |   14 ----
 arch/powerpc/kernel/time.c            |    8 +-
 arch/s390/Kconfig                     |    1 +
 arch/s390/kernel/vtime.c              |    9 ++-
 arch/x86/kernel/apm_32.c              |    4 +-
 include/asm-generic/cputime_jiffies.h |    1 -
 include/asm-generic/cputime_nsecs.h   |    1 -
 include/linux/kernel_stat.h           |    4 +-
 include/linux/sched.h                 |   29 +++++---
 kernel/fork.c                         |    2 +
 kernel/sched/cputime.c                |  124 +++++++++------------------------
 kernel/time/posix-cpu-timers.c        |    4 +-
 14 files changed, 73 insertions(+), 133 deletions(-)

^ permalink raw reply	[flat|nested] 17+ messages in thread
* [GIT PULL] cputime: Scaled cputime optimizations and cleanups
@ 2016-11-15  2:06 Frederic Weisbecker
  2016-11-15  2:06 ` [PATCH 3/4] cputime/powerpc/s390: Make scaled cputime arch specific Frederic Weisbecker
  0 siblings, 1 reply; 17+ messages in thread
From: Frederic Weisbecker @ 2016-11-15  2:06 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: LKML, Frederic Weisbecker, Paul Mackerras, Peter Zijlstra,
	Heiko Carstens, Benjamin Herrenschmidt, Michael Neuling,
	Paul Mackerras, Ingo Molnar, Martin Schwidefsky,
	Stanislaw Gruszka

Ingo,

Please pull the sched/cputime branch that can be found at:

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

HEAD: bb953cdfa26c25e42beb748e7be71ea3d4927186

This set removes the dead arch and core code handling scaled cputime and
optimize the most common case where archs don't support scaled frequency
accounting.

Thanks,
	Frederic
---

Stanislaw Gruszka (4):
      cputime/powerpc: Remove cputime_last_delta global variable
      cputime/powerpc: Remove cputime_to_scaled()
      cputime/powerpc/s390: Make scaled cputime arch specific
      cputime: Simplify task_cputime()


 arch/Kconfig                          |   3 +
 arch/ia64/kernel/time.c               |   4 +-
 arch/powerpc/Kconfig                  |   1 +
 arch/powerpc/include/asm/cputime.h    |  14 ----
 arch/powerpc/kernel/time.c            |   8 +--
 arch/s390/Kconfig                     |   1 +
 arch/s390/kernel/vtime.c              |   9 ++-
 arch/x86/kernel/apm_32.c              |   4 +-
 include/asm-generic/cputime_jiffies.h |   1 -
 include/asm-generic/cputime_nsecs.h   |   1 -
 include/linux/kernel_stat.h           |   4 +-
 include/linux/sched.h                 |  35 ++++++----
 kernel/fork.c                         |   2 +
 kernel/sched/cputime.c                | 124 +++++++++-------------------------
 kernel/time/posix-cpu-timers.c        |   4 +-
 15 files changed, 78 insertions(+), 137 deletions(-)

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2016-11-15 10:52 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-31 12:36 [PATCH 0/4] cputime: some optimizations and cleanups Stanislaw Gruszka
2016-10-31 12:36 ` [PATCH 1/4] cputime/powerpc: remove cputime_last_delta global variable Stanislaw Gruszka
2016-11-03  0:50   ` Paul Mackerras
2016-10-31 12:36 ` [PATCH 2/4] cputime/powerpc: remove cputime_to_scaled() Stanislaw Gruszka
2016-11-03  0:51   ` Paul Mackerras
2016-10-31 12:36 ` [PATCH 3/4] cputime/powerpc/s390: make scaled cputime arch specific Stanislaw Gruszka
2016-10-31 13:02   ` kbuild test robot
2016-10-31 13:13   ` [PATCH v2 " Stanislaw Gruszka
2016-10-31 14:13   ` [PATCH " kbuild test robot
2016-10-31 16:21   ` [PATCH v3 " Stanislaw Gruszka
2016-11-15 10:51     ` [tip:sched/core] sched/cputime, powerpc, s390: Make " tip-bot for Stanislaw Gruszka
2016-11-02  9:11   ` [PATCH 3/4] cputime/powerpc/s390: make " Christian Borntraeger
2016-11-02  9:38     ` Stanislaw Gruszka
2016-11-02 21:22       ` Martin Schwidefsky
2016-10-31 12:36 ` [PATCH 4/4] cputime: simplify task_cputime() Stanislaw Gruszka
2016-11-09 13:01 ` [PATCH 0/4] cputime: some optimizations and cleanups Frederic Weisbecker
2016-11-15  2:06 [GIT PULL] cputime: Scaled cputime " Frederic Weisbecker
2016-11-15  2:06 ` [PATCH 3/4] cputime/powerpc/s390: Make scaled cputime arch specific Frederic Weisbecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).