[Intel-gfx] [PATCH 13/15] time: export clocks_calc_mult_shift

sourab.gupta at intel.com sourab.gupta at intel.com
Fri Nov 4 09:30:42 UTC 2016


From: Sourab Gupta <sourab.gupta at intel.com>

Exporting clocks_calc_mult_shift is helpful for drivers to calculate
the mult/shift values for their clocks, given their frequency.
This is particularly useful when such drivers may want to associate
timecounter/cyclecounter abstraction for their clock sources, in order
to use the cross timestamp infrastructure for syncing device time with
system time.

Signed-off-by: Sourab Gupta <sourab.gupta at intel.com>
---
 kernel/time/clocksource.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c
index 6a5a310..e2de743 100644
--- a/kernel/time/clocksource.c
+++ b/kernel/time/clocksource.c
@@ -89,6 +89,7 @@ clocks_calc_mult_shift(u32 *mult, u32 *shift, u32 from, u32 to, u32 maxsec)
 	*mult = tmp;
 	*shift = sft;
 }
+EXPORT_SYMBOL_GPL(clocks_calc_mult_shift);
 
 /*[Clocksource internal variables]---------
  * curr_clocksource:
-- 
1.9.1



More information about the Intel-gfx mailing list