lkml.org 
[lkml]   [2014]   [Jun]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [patch 13/13] tomoyo: Use sensible time interface
From
Date
Thomas Gleixner wrote:
> There is no point in calling gettimeofday if only the seconds part of
> the timespec is used. Use get_seconds() instead. It's not only the
> proper interface it's also faster.
>
> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
> Cc: Kentaro Takeda <takedakn@nttdata.co.jp>
> Cc: linux-security-module@vger.kernel.org

Acked-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>

John Stultz wrote:
> do_gettimeofday() { 99, 888....}
> get_seconds() { 99 }
> do_gettimeofday() { 99, 999....}
> get_seconds() { 99 }
> do_gettimeofday() { 100, 000....}
> get_seconds() { 99 }
> do_gettimeofday() { 100, 011....}
> get_seconds() { 100 }

That will be acceptable error for TOMOYO. Thank you.


\
 
 \ /
  Last update: 2014-06-12 14:21    [W:0.177 / U:5.852 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site