clockevents: Rename state to state_use_accessors

The only sensible way to make abuse of core internal fields obvious
and easy to grep for.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Cc: Peter Zijlstra <peterz@infradead.org>
This commit is contained in:
Thomas Gleixner
2015-06-02 14:30:11 +02:00
parent 051ebd101b
commit be3ef76e9d
2 changed files with 9 additions and 9 deletions

View File

@@ -38,13 +38,13 @@ static inline int tick_device_is_functional(struct clock_event_device *dev)
static inline enum clock_event_state clockevent_get_state(struct clock_event_device *dev)
{
return dev->state;
return dev->state_use_accessors;
}
static inline void clockevent_set_state(struct clock_event_device *dev,
enum clock_event_state state)
{
dev->state = state;
dev->state_use_accessors = state;
}
extern void clockevents_shutdown(struct clock_event_device *dev);