public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH V2 0/2] clockevents: Add helpers to verify state of a clockevent device
@ 2015-05-21  8:03 Viresh Kumar
  2015-05-21  8:03 ` [PATCH V2 1/2] " Viresh Kumar
  2015-05-21  8:03 ` [PATCH V2 2/2] clockevents: Use helpers to verify " Viresh Kumar
  0 siblings, 2 replies; 5+ messages in thread
From: Viresh Kumar @ 2015-05-21  8:03 UTC (permalink / raw)
  To: Thomas Gleixner
  Cc: linaro-kernel, linux-kernel, Peter Zijlstra, Ingo Molnar,
	Viresh Kumar

Hi Thomas,

Some clockevent drivers, once migrated to use per-state callbacks, would
need to verify 'state' of the clockevent device in their callbacks or
interrupt handler.

(Details of these drivers are posted by Thomas earlier:
https://lkml.org/lkml/2015/5/20/454)

In order to discourage drivers from using CLK_EVT_STATE_* symbols
directly and to make it easy grep for abusers of these symbols, this
series introduces few accessor functions. The second patch updates core
code to use these functions.

V1->V2:
- Don't move 'enum clock_event_state' to core's internal file.
- Move accessor functions to clockchips.h and mark them inline.
- New patch, 2/2.
- s/\<evt\>/dev in accessor functions

Rebased-over: tip/timers/core (dependency on 8fff52fd5093 ("clockevents:
	      Introduce CLOCK_EVT_STATE_ONESHOT_STOPPED state"))

--
viresh

Viresh Kumar (2):
  clockevents: Add helpers to verify state of a clockevent device
  clockevents: Use helpers to verify state of a clockevent device

 include/linux/clockchips.h   | 26 ++++++++++++++++++++++++++
 kernel/time/clockevents.c    | 24 ++++++++++++------------
 kernel/time/tick-broadcast.c |  6 +++---
 kernel/time/tick-common.c    |  2 +-
 kernel/time/tick-oneshot.c   |  2 +-
 5 files changed, 43 insertions(+), 17 deletions(-)

-- 
2.4.0


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

end of thread, other threads:[~2015-06-02 19:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-21  8:03 [PATCH V2 0/2] clockevents: Add helpers to verify state of a clockevent device Viresh Kumar
2015-05-21  8:03 ` [PATCH V2 1/2] " Viresh Kumar
2015-06-02 19:30   ` [tip:timers/core] clockevents: Add helpers to check the " tip-bot for Viresh Kumar
2015-05-21  8:03 ` [PATCH V2 2/2] clockevents: Use helpers to verify " Viresh Kumar
2015-06-02 19:31   ` [tip:timers/core] clockevents: Use helpers to check the " tip-bot for Viresh Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox