Merge branch 'for-3.18-consistent-ops' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-microblaze.git] / security / tomoyo / common.c
index 283862a..e0fb750 100644 (file)
@@ -2267,13 +2267,11 @@ static unsigned int tomoyo_stat_modified[TOMOYO_MAX_POLICY_STAT];
  */
 void tomoyo_update_stat(const u8 index)
 {
-       struct timeval tv;
-       do_gettimeofday(&tv);
        /*
         * I don't use atomic operations because race condition is not fatal.
         */
        tomoyo_stat_updated[index]++;
-       tomoyo_stat_modified[index] = tv.tv_sec;
+       tomoyo_stat_modified[index] = get_seconds();
 }
 
 /**