[tip:timers/core] clocksource: Get rid of clocksource_calc_mult_shift()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Commit-ID:  c7f798e3722610d486e951f04bbc00b6ba124d62
Gitweb:     http://git.kernel.org/tip/c7f798e3722610d486e951f04bbc00b6ba124d62
Author:     Yong Zhang <yong.zhang0@xxxxxxxxx>
AuthorDate: Thu, 1 Dec 2011 11:25:59 -0800
Committer:  John Stultz <john.stultz@xxxxxxxxxx>
CommitDate: Wed, 1 Feb 2012 18:37:39 -0800

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@xxxxxxxxxxxxx>
Signed-off-by: Yong Zhang <yong.zhang0@xxxxxxxxx>
[jstultz: tweaked commit message]
Signed-off-by: John Stultz <john.stultz@xxxxxxxxxx>
---
 include/linux/clocksource.h |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h
index 081147d..fbe89e1 100644
--- a/include/linux/clocksource.h
+++ b/include/linux/clocksource.h
@@ -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,
--
To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Stable Commits]     [Linux Stable Kernel]     [Linux Kernel]     [Linux USB Devel]     [Linux Video &Media]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux