[lkml]   [2014]   [Jan]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v2 1/3] kernel/time: Add new helpers to convert ktime to/from jiffies
On 01/13/2014 07:43 PM, Alexey Perevalov wrote:
> From: Anton Vorontsov <>
> Two new functions: jiffies_to_ktime() and ktime_to_jiffies(), we'll use
> them for timerfd deferred timers handling.
> We fully reuse the logic from timespec implementations, so the functions
> are pretty straightforward.
> The only tricky part is in headers: we have to include jiffies.h after
> we defined ktime_t, this is because ktime.h needs some declarations from
> jiffies.h (e.g. TICK_NSEC).
> Signed-off-by: Anton Vorontsov <>
> Signed-off-by: Alexey Perevalov <>

Tested-by: Chanwoo Choi <>

I tested this patchset about operation of deferrable timer on user-space.

Chanwoo Choi

 \ /
  Last update: 2014-01-14 02:01    [W:0.109 / U:1.468 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site