diff options
Diffstat (limited to 'security/tomoyo/common.c')
-rw-r--r-- | security/tomoyo/common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/tomoyo/common.c b/security/tomoyo/common.c index 21691b99e61f..25eed4b0b0e8 100644 --- a/security/tomoyo/common.c +++ b/security/tomoyo/common.c | |||
@@ -2257,7 +2257,7 @@ static const char * const tomoyo_memory_headers[TOMOYO_MAX_MEMORY_STAT] = { | |||
2257 | /* Timestamp counter for last updated. */ | 2257 | /* Timestamp counter for last updated. */ |
2258 | static unsigned int tomoyo_stat_updated[TOMOYO_MAX_POLICY_STAT]; | 2258 | static unsigned int tomoyo_stat_updated[TOMOYO_MAX_POLICY_STAT]; |
2259 | /* Counter for number of updates. */ | 2259 | /* Counter for number of updates. */ |
2260 | static unsigned int tomoyo_stat_modified[TOMOYO_MAX_POLICY_STAT]; | 2260 | static time64_t tomoyo_stat_modified[TOMOYO_MAX_POLICY_STAT]; |
2261 | 2261 | ||
2262 | /** | 2262 | /** |
2263 | * tomoyo_update_stat - Update statistic counters. | 2263 | * tomoyo_update_stat - Update statistic counters. |
@@ -2272,7 +2272,7 @@ void tomoyo_update_stat(const u8 index) | |||
2272 | * I don't use atomic operations because race condition is not fatal. | 2272 | * I don't use atomic operations because race condition is not fatal. |
2273 | */ | 2273 | */ |
2274 | tomoyo_stat_updated[index]++; | 2274 | tomoyo_stat_updated[index]++; |
2275 | tomoyo_stat_modified[index] = get_seconds(); | 2275 | tomoyo_stat_modified[index] = ktime_get_real_seconds(); |
2276 | } | 2276 | } |
2277 | 2277 | ||
2278 | /** | 2278 | /** |