linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [RFC 0/2] clocksource: don't suspend/resume when unused
@ 2015-01-16  9:17 Alexandre Belloni
  2015-01-16  9:17 ` [RFC 1/2] clocksource: track usage Alexandre Belloni
  2015-01-16  9:17 ` [RFC 2/2] clocksource: don't suspend/resume when unused Alexandre Belloni
  0 siblings, 2 replies; 14+ messages in thread
From: Alexandre Belloni @ 2015-01-16  9:17 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

This is a quite naive implementation to track whether a cloccksource 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.

Regards,

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

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

-- 
2.1.0

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

end of thread, other threads:[~2015-02-02 20:03 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-16  9:17 [RFC 0/2] clocksource: don't suspend/resume when unused Alexandre Belloni
2015-01-16  9:17 ` [RFC 1/2] clocksource: track usage Alexandre Belloni
2015-01-16 10:39   ` Boris Brezillon
2015-02-02 20:03   ` Kevin Hilman
2015-01-16  9:17 ` [RFC 2/2] clocksource: don't suspend/resume when unused Alexandre Belloni
2015-01-16 10:23   ` Thomas Gleixner
2015-01-16 10:35     ` Alexandre Belloni
2015-01-16 10:39       ` Daniel Lezcano
2015-01-16 10:48         ` Alexandre Belloni
2015-01-16 10:59           ` Daniel Lezcano
2015-01-16 11:07             ` Alexandre Belloni
2015-01-16 11:45               ` Alexandre Belloni
2015-01-16 11:23       ` Russell King - ARM Linux
2015-01-16 11:28         ` Alexandre Belloni

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