tomoyo: Use sensible time interface
authorThomas Gleixner <tglx@linutronix.de>
Wed, 11 Jun 2014 23:59:19 +0000 (23:59 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 12 Jun 2014 14:18:45 +0000 (16:18 +0200)
commit77f4fa089c724adc3a87c10eb031bca91b144ac0
tree1e40795801937aeb9f69ec6a2458a1c1571b13f7
parentf037c1171db79be2a047b1a5aafa2fd1f05051cb
tomoyo: Use sensible time interface

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>
Acked-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Kentaro Takeda <takedakn@nttdata.co.jp>
Cc: linux-security-module@vger.kernel.org
Link: http://lkml.kernel.org/r/20140611234607.775273584@linutronix.de
security/tomoyo/audit.c
security/tomoyo/common.c