Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c7f798e3 authored by Yong Zhang's avatar Yong Zhang Committed by John Stultz
Browse files

clocksource: Get rid of clocksource_calc_mult_shift()



No one is using this, so encourage the use of
clocksource_register_hz/khz(), and drop this helper.

Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarYong Zhang <yong.zhang0@gmail.com>
[jstultz: tweaked commit message]
Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
parent 13f0f030
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -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,