lkml.org 
[lkml]   [2015]   [Nov]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/4] ktime: add a roundup function
On Fri, 13 Nov 2015 12:11:01 -0800
John Stultz <john.stultz@linaro.org> wrote:

> Could you add a comment as to what the function does, and use some
> better variable names here to make it more immediately obvious what is
> being done here?
>
> Something like:
> /**
> * ktime_roundup - Rounds value up to interval chunk
> * @ value: Value to be rounded up
> * @ interval: interval size to round up to
> *
> * Rounds a value up to the next higher multiple of an interval size
> */
> static inline ktime ktime_roundup(ktime_t value, ktime_t interval)
will do. thank you for taking the time.


\
 
 \ /
  Last update: 2015-11-14 00:01    [W:0.113 / U:1.664 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site