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>
diff --git a/kernel/time/tick-internal.h b/kernel/time/tick-internal.h
index 4461de9..ec2208a 100644
--- a/kernel/time/tick-internal.h
+++ b/kernel/time/tick-internal.h
@@ -38,13 +38,13 @@
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);