Skip to content

Commit

Permalink
clocksource: Get rid of clocksource_calc_mult_shift()
Browse files Browse the repository at this point in the history
No one is using this, so encourage the use of
clocksource_register_hz/khz(), and drop this helper.

Cc: Thomas Gleixner <[email protected]>
Signed-off-by: Yong Zhang <[email protected]>
[jstultz: tweaked commit message]
Signed-off-by: John Stultz <[email protected]>
  • Loading branch information
yongzhang0 authored and johnstultz-work committed Feb 2, 2012
1 parent 13f0f03 commit c7f798e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions include/linux/clocksource.h
Original file line number Diff line number Diff line change
Expand Up @@ -319,13 +319,6 @@ static inline void __clocksource_updatefreq_khz(struct clocksource *cs, u32 khz)
__clocksource_updatefreq_scale(cs, 1000, khz);
}

static inline void
clocksource_calc_mult_shift(struct clocksource *cs, u32 freq, u32 minsec)
{
return clocks_calc_mult_shift(&cs->mult, &cs->shift, freq,
NSEC_PER_SEC, minsec);
}

#ifdef CONFIG_GENERIC_TIME_VSYSCALL
extern void
update_vsyscall(struct timespec *ts, struct timespec *wtm,
Expand Down

0 comments on commit c7f798e

Please sign in to comment.