From: Arnd Bergmann Date: Mon, 18 Jun 2018 15:00:38 +0000 (+0200) Subject: sysinfo: Remove get_monotonic_boottime() X-Git-Tag: v4.19~477^2~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dc1b7b6ca9d5fa905c164a667086d8a3d8605875;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Thomas Gleixner Reviewed-by: Cyrill Gorcunov Cc: Andrew Morton Cc: y2038@lists.linaro.org Cc: Dominik Brodowski Cc: Cyrill Gorcunov Link: https://lkml.kernel.org/r/20180618150114.849216-1-arnd@arndb.de --- diff --git a/kernel/sys.c b/kernel/sys.c index 38509dc..e27b51d 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);