lkml.org 
[lkml]   [2012]   [Jul]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 6/8] time: Move arch_gettimeoffset() usage into timekeeping_get_ns()

* John Stultz <john.stultz@linaro.org> wrote:

> + nsec >>= timekeeper.shift;
> +
> + /* If arch requires, add in gettimeoffset() */
> + nsec += arch_gettimeoffset();
> + return nsec;

As a factoring out bonus, this could be further shortened to:

return nsec + arch_gettimeoffset();

> + /* If arch requires, add in gettimeoffset() */
> + nsec += arch_gettimeoffset();
> + return nsec;

Ditto.

Thanks,

Ingo


\
 
 \ /
  Last update: 2012-07-13 08:42    [W:0.760 / U:0.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site