diff options
Diffstat (limited to 'include/linux/clockchips.h')
-rw-r--r-- | include/linux/clockchips.h | 29 |
1 files changed, 5 insertions, 24 deletions
diff --git a/include/linux/clockchips.h b/include/linux/clockchips.h index 31ce435981fe..bdcf358dfce2 100644 --- a/include/linux/clockchips.h +++ b/include/linux/clockchips.h | |||
@@ -18,15 +18,6 @@ | |||
18 | struct clock_event_device; | 18 | struct clock_event_device; |
19 | struct module; | 19 | struct module; |
20 | 20 | ||
21 | /* Clock event mode commands for legacy ->set_mode(): OBSOLETE */ | ||
22 | enum clock_event_mode { | ||
23 | CLOCK_EVT_MODE_UNUSED, | ||
24 | CLOCK_EVT_MODE_SHUTDOWN, | ||
25 | CLOCK_EVT_MODE_PERIODIC, | ||
26 | CLOCK_EVT_MODE_ONESHOT, | ||
27 | CLOCK_EVT_MODE_RESUME, | ||
28 | }; | ||
29 | |||
30 | /* | 21 | /* |
31 | * Possible states of a clock event device. | 22 | * Possible states of a clock event device. |
32 | * | 23 | * |
@@ -86,16 +77,14 @@ enum clock_event_state { | |||
86 | * @min_delta_ns: minimum delta value in ns | 77 | * @min_delta_ns: minimum delta value in ns |
87 | * @mult: nanosecond to cycles multiplier | 78 | * @mult: nanosecond to cycles multiplier |
88 | * @shift: nanoseconds to cycles divisor (power of two) | 79 | * @shift: nanoseconds to cycles divisor (power of two) |
89 | * @mode: operating mode, relevant only to ->set_mode(), OBSOLETE | ||
90 | * @state_use_accessors:current state of the device, assigned by the core code | 80 | * @state_use_accessors:current state of the device, assigned by the core code |
91 | * @features: features | 81 | * @features: features |
92 | * @retries: number of forced programming retries | 82 | * @retries: number of forced programming retries |
93 | * @set_mode: legacy set mode function, only for modes <= CLOCK_EVT_MODE_RESUME. | 83 | * @set_state_periodic: switch state to periodic |
94 | * @set_state_periodic: switch state to periodic, if !set_mode | 84 | * @set_state_oneshot: switch state to oneshot |
95 | * @set_state_oneshot: switch state to oneshot, if !set_mode | 85 | * @set_state_oneshot_stopped: switch state to oneshot_stopped |
96 | * @set_state_oneshot_stopped: switch state to oneshot_stopped, if !set_mode | 86 | * @set_state_shutdown: switch state to shutdown |
97 | * @set_state_shutdown: switch state to shutdown, if !set_mode | 87 | * @tick_resume: resume clkevt device |
98 | * @tick_resume: resume clkevt device, if !set_mode | ||
99 | * @broadcast: function to broadcast events | 88 | * @broadcast: function to broadcast events |
100 | * @min_delta_ticks: minimum delta value in ticks stored for reconfiguration | 89 | * @min_delta_ticks: minimum delta value in ticks stored for reconfiguration |
101 | * @max_delta_ticks: maximum delta value in ticks stored for reconfiguration | 90 | * @max_delta_ticks: maximum delta value in ticks stored for reconfiguration |
@@ -116,18 +105,10 @@ struct clock_event_device { | |||
116 | u64 min_delta_ns; | 105 | u64 min_delta_ns; |
117 | u32 mult; | 106 | u32 mult; |
118 | u32 shift; | 107 | u32 shift; |
119 | enum clock_event_mode mode; | ||
120 | enum clock_event_state state_use_accessors; | 108 | enum clock_event_state state_use_accessors; |
121 | unsigned int features; | 109 | unsigned int features; |
122 | unsigned long retries; | 110 | unsigned long retries; |
123 | 111 | ||
124 | /* | ||
125 | * State transition callback(s): Only one of the two groups should be | ||
126 | * defined: | ||
127 | * - set_mode(), only for modes <= CLOCK_EVT_MODE_RESUME. | ||
128 | * - set_state_{shutdown|periodic|oneshot|oneshot_stopped}(), tick_resume(). | ||
129 | */ | ||
130 | void (*set_mode)(enum clock_event_mode mode, struct clock_event_device *); | ||
131 | int (*set_state_periodic)(struct clock_event_device *); | 112 | int (*set_state_periodic)(struct clock_event_device *); |
132 | int (*set_state_oneshot)(struct clock_event_device *); | 113 | int (*set_state_oneshot)(struct clock_event_device *); |
133 | int (*set_state_oneshot_stopped)(struct clock_event_device *); | 114 | int (*set_state_oneshot_stopped)(struct clock_event_device *); |