aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/clocksource.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/clocksource.h')
-rw-r--r--include/linux/clocksource.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h
index c4739c4e3039..5f4a7f72f3ee 100644
--- a/include/linux/clocksource.h
+++ b/include/linux/clocksource.h
@@ -118,12 +118,12 @@ static inline u32 clocksource_hz2mult(u32 hz, u32 shift_constant)
118} 118}
119 119
120/** 120/**
121 * read_clocksource: - Access the clocksource's current cycle value 121 * clocksource_read: - Access the clocksource's current cycle value
122 * @cs: pointer to clocksource being read 122 * @cs: pointer to clocksource being read
123 * 123 *
124 * Uses the clocksource to return the current cycle_t value 124 * Uses the clocksource to return the current cycle_t value
125 */ 125 */
126static inline cycle_t read_clocksource(struct clocksource *cs) 126static inline cycle_t clocksource_read(struct clocksource *cs)
127{ 127{
128 return cs->read(); 128 return cs->read();
129} 129}
@@ -145,7 +145,7 @@ static inline s64 cyc2ns(struct clocksource *cs, cycle_t cycles)
145} 145}
146 146
147/** 147/**
148 * calculate_clocksource_interval - Calculates a clocksource interval struct 148 * clocksource_calculate_interval - Calculates a clocksource interval struct
149 * 149 *
150 * @c: Pointer to clocksource. 150 * @c: Pointer to clocksource.
151 * @length_nsec: Desired interval length in nanoseconds. 151 * @length_nsec: Desired interval length in nanoseconds.
@@ -155,7 +155,7 @@ static inline s64 cyc2ns(struct clocksource *cs, cycle_t cycles)
155 * 155 *
156 * Unless you're the timekeeping code, you should not be using this! 156 * Unless you're the timekeeping code, you should not be using this!
157 */ 157 */
158static inline void calculate_clocksource_interval(struct clocksource *c, 158static inline void clocksource_calculate_interval(struct clocksource *c,
159 unsigned long length_nsec) 159 unsigned long length_nsec)
160{ 160{
161 u64 tmp; 161 u64 tmp;
@@ -271,8 +271,8 @@ static inline s64 make_ntp_adj(struct clocksource *clock,
271 271
272 272
273/* used to install a new clocksource */ 273/* used to install a new clocksource */
274int register_clocksource(struct clocksource*); 274int clocksource_register(struct clocksource*);
275void reselect_clocksource(void); 275void clocksource_reselect(void);
276struct clocksource* get_next_clocksource(void); 276struct clocksource* clocksource_get_next(void);
277 277
278#endif /* _LINUX_CLOCKSOURCE_H */ 278#endif /* _LINUX_CLOCKSOURCE_H */