aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2018-06-18 17:00:38 +0200
committerThomas Gleixner <[email protected]>2018-06-19 09:56:27 +0200
commitdc1b7b6ca9d5fa905c164a667086d8a3d8605875 (patch)
tree9199897713aa846fa047c681387197e4f5d3debd
parent58a10456d7175fa674b951f1fd7ead3d9a550db4 (diff)
sysinfo: Remove get_monotonic_boottime()
get_monotonic_boottime() is deprecated because it uses the old 'timespec' structure. This replaces one of the last callers with a call to ktime_get_boottime. Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Cyrill Gorcunov <[email protected]> Cc: Andrew Morton <[email protected]> Cc: [email protected] Cc: Dominik Brodowski <[email protected]> Cc: Cyrill Gorcunov <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
-rw-r--r--kernel/sys.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sys.c b/kernel/sys.c
index 38509dc1f77b..e27b51d3facd 100644
--- a/kernel/sys.c
+++ b/kernel/sys.c
@@ -2512,11 +2512,11 @@ static int do_sysinfo(struct sysinfo *info)
{
unsigned long mem_total, sav_total;
unsigned int mem_unit, bitcount;
- struct timespec tp;
+ struct timespec64 tp;
memset(info, 0, sizeof(struct sysinfo));
- get_monotonic_boottime(&tp);
+ ktime_get_boottime_ts64(&tp);
info->uptime = tp.tv_sec + (tp.tv_nsec ? 1 : 0);
get_avenrun(info->loads, 0, SI_LOAD_SHIFT - FSHIFT);