All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] clocksource: don't suspend/resume when unused
@ 2015-01-16 16:57 ` Alexandre Belloni
  0 siblings, 0 replies; 16+ messages in thread
From: Alexandre Belloni @ 2015-01-16 16:57 UTC (permalink / raw)
  To: Thomas Gleixner
  Cc: John Stultz, Daniel Lezcano, Nicolas Ferre, Boris Brezillon,
	Russell King - ARM Linux, linux-arm-kernel, linux-kernel,
	Alexandre Belloni

This is a quite naive implementation to track whether a clocksource is enabled.
I chose not to add a member in struct clocksource and use a flag instead.

I found that timekeeping.c is the only consumer for clocksource and I converted
it to use clocksource_enable and clocksource_disable.

Changes in v2:
 - removed the check on enable in timekeeping.c to ensure all clocksources are
   going through clocksource_enable
 - rework clocksource_enable to set CLOCK_SOURCE_USED when enable is successful
   if present

Alexandre Belloni (2):
  clocksource: track usage
  clocksource: don't suspend/resume when unused

 include/linux/clocksource.h |  4 ++++
 kernel/time/clocksource.c   | 34 ++++++++++++++++++++++++++++++++--
 kernel/time/timekeeping.c   |  8 +++-----
 3 files changed, 39 insertions(+), 7 deletions(-)

-- 
2.1.0


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

end of thread, other threads:[~2015-01-20 11:13 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-16 16:57 [PATCH v2 0/2] clocksource: don't suspend/resume when unused Alexandre Belloni
2015-01-16 16:57 ` Alexandre Belloni
2015-01-16 16:57 ` [PATCH v2 1/2] clocksource: track usage Alexandre Belloni
2015-01-16 16:57   ` Alexandre Belloni
2015-01-16 19:05   ` John Stultz
2015-01-16 19:05     ` John Stultz
2015-01-17  1:26     ` Alexandre Belloni
2015-01-17  1:26       ` Alexandre Belloni
2015-01-20 10:51   ` Thomas Gleixner
2015-01-20 10:51     ` Thomas Gleixner
2015-01-16 16:57 ` [PATCH v2 2/2] clocksource: don't suspend/resume when unused Alexandre Belloni
2015-01-16 16:57   ` Alexandre Belloni
2015-01-20 11:13   ` Thomas Gleixner
2015-01-20 11:13     ` Thomas Gleixner
2015-01-16 17:45 ` [PATCH v2 0/2] " Boris Brezillon
2015-01-16 17:45   ` Boris Brezillon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.