summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2015-06-02 15:30:11 +0300
committerThomas Gleixner <tglx@linutronix.de>2015-06-02 17:56:42 +0300
commitbe3ef76e9d9b97962c70bd6351787d29071ae481 (patch)
tree20369afc74d35706bbd57c841c87bcf05a027a81 /kernel
parent051ebd101b05c09d9b5b673e19fb0586e9bfec56 (diff)
downloadlinux-be3ef76e9d9b97962c70bd6351787d29071ae481.tar.xz
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>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/time/tick-internal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/time/tick-internal.h b/kernel/time/tick-internal.h
index 4461de9bb4b8..ec2208aabdd1 100644
--- a/kernel/time/tick-internal.h
+++ b/kernel/time/tick-internal.h
@@ -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);