diff options
| -rw-r--r-- | include/linux/clockchips.h | 14 | ||||
| -rw-r--r-- | kernel/time/tick-internal.h | 4 |
2 files changed, 9 insertions, 9 deletions
diff --git a/include/linux/clockchips.h b/include/linux/clockchips.h index 64214ad85af9..597a1e836f22 100644 --- a/include/linux/clockchips.h +++ b/include/linux/clockchips.h | |||
| @@ -87,7 +87,7 @@ enum clock_event_state { | |||
| 87 | * @mult: nanosecond to cycles multiplier | 87 | * @mult: nanosecond to cycles multiplier |
| 88 | * @shift: nanoseconds to cycles divisor (power of two) | 88 | * @shift: nanoseconds to cycles divisor (power of two) |
| 89 | * @mode: operating mode, relevant only to ->set_mode(), OBSOLETE | 89 | * @mode: operating mode, relevant only to ->set_mode(), OBSOLETE |
| 90 | * @state: current state of the device, assigned by the core code | 90 | * @state_use_accessors:current state of the device, assigned by the core code |
| 91 | * @features: features | 91 | * @features: features |
| 92 | * @retries: number of forced programming retries | 92 | * @retries: number of forced programming retries |
| 93 | * @set_mode: legacy set mode function, only for modes <= CLOCK_EVT_MODE_RESUME. | 93 | * @set_mode: legacy set mode function, only for modes <= CLOCK_EVT_MODE_RESUME. |
| @@ -117,7 +117,7 @@ struct clock_event_device { | |||
| 117 | u32 mult; | 117 | u32 mult; |
| 118 | u32 shift; | 118 | u32 shift; |
| 119 | enum clock_event_mode mode; | 119 | enum clock_event_mode mode; |
| 120 | enum clock_event_state state; | 120 | enum clock_event_state state_use_accessors; |
| 121 | unsigned int features; | 121 | unsigned int features; |
| 122 | unsigned long retries; | 122 | unsigned long retries; |
| 123 | 123 | ||
| @@ -152,27 +152,27 @@ struct clock_event_device { | |||
| 152 | /* Helpers to verify state of a clockevent device */ | 152 | /* Helpers to verify state of a clockevent device */ |
| 153 | static inline bool clockevent_state_detached(struct clock_event_device *dev) | 153 | static inline bool clockevent_state_detached(struct clock_event_device *dev) |
| 154 | { | 154 | { |
| 155 | return dev->state == CLOCK_EVT_STATE_DETACHED; | 155 | return dev->state_use_accessors == CLOCK_EVT_STATE_DETACHED; |
| 156 | } | 156 | } |
| 157 | 157 | ||
| 158 | static inline bool clockevent_state_shutdown(struct clock_event_device *dev) | 158 | static inline bool clockevent_state_shutdown(struct clock_event_device *dev) |
| 159 | { | 159 | { |
| 160 | return dev->state == CLOCK_EVT_STATE_SHUTDOWN; | 160 | return dev->state_use_accessors == CLOCK_EVT_STATE_SHUTDOWN; |
| 161 | } | 161 | } |
| 162 | 162 | ||
| 163 | static inline bool clockevent_state_periodic(struct clock_event_device *dev) | 163 | static inline bool clockevent_state_periodic(struct clock_event_device *dev) |
| 164 | { | 164 | { |
| 165 | return dev->state == CLOCK_EVT_STATE_PERIODIC; | 165 | return dev->state_use_accessors == CLOCK_EVT_STATE_PERIODIC; |
| 166 | } | 166 | } |
| 167 | 167 | ||
| 168 | static inline bool clockevent_state_oneshot(struct clock_event_device *dev) | 168 | static inline bool clockevent_state_oneshot(struct clock_event_device *dev) |
| 169 | { | 169 | { |
| 170 | return dev->state == CLOCK_EVT_STATE_ONESHOT; | 170 | return dev->state_use_accessors == CLOCK_EVT_STATE_ONESHOT; |
| 171 | } | 171 | } |
| 172 | 172 | ||
| 173 | static inline bool clockevent_state_oneshot_stopped(struct clock_event_device *dev) | 173 | static inline bool clockevent_state_oneshot_stopped(struct clock_event_device *dev) |
| 174 | { | 174 | { |
| 175 | return dev->state == CLOCK_EVT_STATE_ONESHOT_STOPPED; | 175 | return dev->state_use_accessors == CLOCK_EVT_STATE_ONESHOT_STOPPED; |
| 176 | } | 176 | } |
| 177 | 177 | ||
| 178 | /* | 178 | /* |
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) | |||
| 38 | 38 | ||
| 39 | static inline enum clock_event_state clockevent_get_state(struct clock_event_device *dev) | 39 | static inline enum clock_event_state clockevent_get_state(struct clock_event_device *dev) |
| 40 | { | 40 | { |
| 41 | return dev->state; | 41 | return dev->state_use_accessors; |
| 42 | } | 42 | } |
| 43 | 43 | ||
| 44 | static inline void clockevent_set_state(struct clock_event_device *dev, | 44 | static inline void clockevent_set_state(struct clock_event_device *dev, |
| 45 | enum clock_event_state state) | 45 | enum clock_event_state state) |
| 46 | { | 46 | { |
| 47 | dev->state = state; | 47 | dev->state_use_accessors = state; |
| 48 | } | 48 | } |
| 49 | 49 | ||
| 50 | extern void clockevents_shutdown(struct clock_event_device *dev); | 50 | extern void clockevents_shutdown(struct clock_event_device *dev); |
