lkml.org 
[lkml]   [2016]   [Feb]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] clocksource: introduce clocksource_freq2mult()
From
On Fri, Feb 5, 2016 at 11:39 PM, Alexander Kuleshov
<kuleshovmail@gmail.com> wrote:
> The clocksource_khz2mult() and clocksource_hz2mult() share similar
> code wihch calculates a mult from the given frequency. Both implementations
> in differ only in value of a frequency. This patch introduces the
> clocksource_freq2mult() helper with generic implementation of
> mult calculation to prevent code duplication.
>
> Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
> ---
> include/linux/clocksource.h | 45 +++++++++++++++++++--------------------------
> 1 file changed, 19 insertions(+), 26 deletions(-)

Looks good. Queued for testing.

Thanks for the cleanup.
-john

\
 
 \ /
  Last update: 2016-02-26 00:21    [W:0.054 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site