Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Yong Zhang <yong.zhang0@gmail.com>
[jstultz: tweaked commit message]
Signed-off-by: John Stultz <john.stultz@linaro.org>

authored by

Yong Zhang and committed by
John Stultz
c7f798e3 13f0f030

-7
-7
include/linux/clocksource.h
··· 319 319 __clocksource_updatefreq_scale(cs, 1000, khz); 320 320 } 321 321 322 - static inline void 323 - clocksource_calc_mult_shift(struct clocksource *cs, u32 freq, u32 minsec) 324 - { 325 - return clocks_calc_mult_shift(&cs->mult, &cs->shift, freq, 326 - NSEC_PER_SEC, minsec); 327 - } 328 - 329 322 #ifdef CONFIG_GENERIC_TIME_VSYSCALL 330 323 extern void 331 324 update_vsyscall(struct timespec *ts, struct timespec *wtm,