linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] cputime: Moar cleanups / enhancements v3
@ 2012-10-25 17:47 Frederic Weisbecker
  2012-10-25 17:47 ` [PATCH 1/5] vtime: Gather vtime declarations to their own header file Frederic Weisbecker
                   ` (6 more replies)
  0 siblings, 7 replies; 14+ messages in thread
From: Frederic Weisbecker @ 2012-10-25 17:47 UTC (permalink / raw)
  To: LKML
  Cc: Frederic Weisbecker, Peter Zijlstra, Ingo Molnar,
	Thomas Gleixner, Steven Rostedt, Paul Gortmaker, Tony Luck,
	Fenghua Yu, Benjamin Herrenschmidt, Paul Mackerras,
	Heiko Carstens, Martin Schwidefsky, Avi Kivity, Marcelo Tosatti,
	Joerg Roedel, Alexander Graf, Xiantao Zhang,
	Christian Borntraeger, Cornelia Huck

Hi,

Changes since v2:

- Fix missing EXPORT_SYMBOL_GPL (thanks Wu Fenguang for the report)
- Drop that *_irqsafe naming, use vtime_account_system() as irq safe
and __vtime_account_system() for the raw arch implementation
- Drop local_irq_disable() on s390 kvm guest switch

If you want to test, it is pullable from:

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

Frederic Weisbecker (5):
  vtime: Gather vtime declarations to their own header file
  vtime: Make vtime_account_system() irqsafe
  kvm: Directly account vtime to system on guest switch
  cputime: Specialize irq vtime hooks
  cputime: Separate irqtime accounting from generic vtime

 arch/ia64/kernel/time.c     |    8 +++---
 arch/powerpc/kernel/time.c  |    4 +-
 arch/s390/kernel/vtime.c    |    4 +++
 arch/s390/kvm/kvm-s390.c    |    4 ---
 include/linux/hardirq.h     |   15 ++-----------
 include/linux/kernel_stat.h |    9 +-------
 include/linux/kvm_host.h    |   12 +++++++++-
 include/linux/vtime.h       |   47 +++++++++++++++++++++++++++++++++++++++++++
 kernel/sched/cputime.c      |   20 +++++++++++++----
 kernel/softirq.c            |    6 ++--
 10 files changed, 89 insertions(+), 40 deletions(-)
 create mode 100644 include/linux/vtime.h

-- 
1.7.5.4


^ permalink raw reply	[flat|nested] 14+ messages in thread
* [PATCH 0/5] cputime: Moar cleanups / enhancements v2
@ 2012-10-25  0:51 Frederic Weisbecker
  2012-10-25  0:51 ` [PATCH 3/5] kvm: Directly account vtime to system on guest switch Frederic Weisbecker
  0 siblings, 1 reply; 14+ messages in thread
From: Frederic Weisbecker @ 2012-10-25  0:51 UTC (permalink / raw)
  To: LKML
  Cc: Frederic Weisbecker, Peter Zijlstra, Ingo Molnar,
	Thomas Gleixner, Steven Rostedt, Paul Gortmaker, Tony Luck,
	Fenghua Yu, Benjamin Herrenschmidt, Paul Mackerras,
	Heiko Carstens, Martin Schwidefsky, Avi Kivity, Marcelo Tosatti,
	Joerg Roedel, Alexander Graf, Xiantao Zhang,
	Christian Borntraeger, Cornelia Huck

I made some changes to the series:

- Handle possible softirq interrupting idle on local_bh_enable()
- Have a dedicated vtime.h header file
- Do some clearer ifdeffery
- Use an irqsafe vtime_account_system() on kvm.

Patches 1/5 and 5/5 are something I really think we want. Patch 3/5
implicitly fixes a bug in s390. If you prefer I can just fix s390
and drop the rest of the patch that is just a micro-optimization
in the kvm guest switch path.

The rest of the patches is micro optimizations on the irq path.
If you think these are pointless over-optimizations, I can just drop
these and only keep 1/5, rebase 5/5 and extract the bug fix in s390 that
resides in 3/5.

Otherwise I'll send a pull request to Ingo in a week or so.

If you want to test, it is pullable from:

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

Tested on powerpc and x86. Built tested on ia64. s390 doesn't build defconfig
on v3.7-rc2.

Frederic Weisbecker (5):
  vtime: Gather vtime declarations to their own header file
  vtime: Provide an irq safe version of vtime_account_system()
  kvm: Directly account vtime to system on guest switch
  cputime: Specialize irq vtime hooks
  cputime: Separate irqtime accounting from generic vtime

 arch/s390/kernel/vtime.c    |    4 +++
 include/linux/hardirq.h     |   15 ++----------
 include/linux/kernel_stat.h |    9 +-------
 include/linux/kvm_host.h    |   12 +++++++++-
 include/linux/vtime.h       |   48 +++++++++++++++++++++++++++++++++++++++++++
 kernel/sched/cputime.c      |   13 +++++++++-
 kernel/softirq.c            |    6 ++--
 7 files changed, 80 insertions(+), 27 deletions(-)
 create mode 100644 include/linux/vtime.h

-- 
1.7.5.4


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

end of thread, other threads:[~2012-10-30  9:17 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-25 17:47 [PATCH 0/5] cputime: Moar cleanups / enhancements v3 Frederic Weisbecker
2012-10-25 17:47 ` [PATCH 1/5] vtime: Gather vtime declarations to their own header file Frederic Weisbecker
2012-10-25 17:48 ` [PATCH 2/5] vtime: Make vtime_account_system() irqsafe Frederic Weisbecker
2012-10-25 17:48 ` [PATCH 3/5] kvm: Directly account vtime to system on guest switch Frederic Weisbecker
2012-10-26 13:55   ` Frederic Weisbecker
2012-10-25 17:48 ` [PATCH 4/5] cputime: Specialize irq vtime hooks Frederic Weisbecker
2012-10-25 17:48 ` [PATCH 5/5] cputime: Separate irqtime accounting from generic vtime Frederic Weisbecker
2012-10-25 17:49 ` [PATCH 0/5] cputime: Moar cleanups / enhancements v3 Frederic Weisbecker
2012-10-29 23:57 ` [GIT PULL] cputime: Cleanups and optimizations Frederic Weisbecker
2012-10-30  9:17   ` Ingo Molnar
  -- strict thread matches above, loose matches on Subject: below --
2012-10-25  0:51 [PATCH 0/5] cputime: Moar cleanups / enhancements v2 Frederic Weisbecker
2012-10-25  0:51 ` [PATCH 3/5] kvm: Directly account vtime to system on guest switch Frederic Weisbecker
2012-10-25  7:51   ` Christian Borntraeger
2012-10-25  7:56     ` Frederic Weisbecker
2012-10-25  7:59       ` Christian Borntraeger

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).