mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[PATCH] time: rename clocksource functions
As suggested by Roman Zippel, change clocksource functions to use clocksource_xyz rather then xyz_clocksource to avoid polluting the namespace. Signed-off-by: John Stultz <johnstul@us.ibm.com> Cc: Roman Zippel <zippel@linux-m68k.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
5d0cf410e9
commit
a275254975
9 changed files with 32 additions and 32 deletions
|
@ -118,12 +118,12 @@ static inline u32 clocksource_hz2mult(u32 hz, u32 shift_constant)
|
|||
}
|
||||
|
||||
/**
|
||||
* read_clocksource: - Access the clocksource's current cycle value
|
||||
* clocksource_read: - Access the clocksource's current cycle value
|
||||
* @cs: pointer to clocksource being read
|
||||
*
|
||||
* Uses the clocksource to return the current cycle_t value
|
||||
*/
|
||||
static inline cycle_t read_clocksource(struct clocksource *cs)
|
||||
static inline cycle_t clocksource_read(struct clocksource *cs)
|
||||
{
|
||||
return cs->read();
|
||||
}
|
||||
|
@ -145,7 +145,7 @@ static inline s64 cyc2ns(struct clocksource *cs, cycle_t cycles)
|
|||
}
|
||||
|
||||
/**
|
||||
* calculate_clocksource_interval - Calculates a clocksource interval struct
|
||||
* clocksource_calculate_interval - Calculates a clocksource interval struct
|
||||
*
|
||||
* @c: Pointer to clocksource.
|
||||
* @length_nsec: Desired interval length in nanoseconds.
|
||||
|
@ -155,7 +155,7 @@ static inline s64 cyc2ns(struct clocksource *cs, cycle_t cycles)
|
|||
*
|
||||
* Unless you're the timekeeping code, you should not be using this!
|
||||
*/
|
||||
static inline void calculate_clocksource_interval(struct clocksource *c,
|
||||
static inline void clocksource_calculate_interval(struct clocksource *c,
|
||||
unsigned long length_nsec)
|
||||
{
|
||||
u64 tmp;
|
||||
|
@ -271,8 +271,8 @@ static inline s64 make_ntp_adj(struct clocksource *clock,
|
|||
|
||||
|
||||
/* used to install a new clocksource */
|
||||
int register_clocksource(struct clocksource*);
|
||||
void reselect_clocksource(void);
|
||||
struct clocksource* get_next_clocksource(void);
|
||||
int clocksource_register(struct clocksource*);
|
||||
void clocksource_reselect(void);
|
||||
struct clocksource* clocksource_get_next(void);
|
||||
|
||||
#endif /* _LINUX_CLOCKSOURCE_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue