The patch titled Subject: kernel/sys.c: remove get_monotonic_boottime() has been added to the -mm tree. Its filename is sysinfo-remove-get_monotonic_boottime.patch
This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/sysinfo-remove-get_monotonic_bootti... and later at http://ozlabs.org/~akpm/mmotm/broken-out/sysinfo-remove-get_monotonic_bootti...
Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next and is updated there every 3-4 working days
------------------------------------------------------ From: Arnd Bergmann arnd@arndb.de Subject: kernel/sys.c: 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.
Link: http://lkml.kernel.org/r/20180618150114.849216-1-arnd@arndb.de Signed-off-by: Arnd Bergmann arnd@arndb.de Reviewed-by: Cyrill Gorcunov gorcunov@gmail.com Reviewed-by: Andrew Morton akpm@linux-foundation.org Cc: Thomas Gleixner tglx@linutronix.de Cc: y2038@lists.linaro.org Cc: Dominik Brodowski linux@dominikbrodowski.net Signed-off-by: Andrew Morton akpm@linux-foundation.org ---
kernel/sys.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff -puN kernel/sys.c~sysinfo-remove-get_monotonic_boottime kernel/sys.c --- a/kernel/sys.c~sysinfo-remove-get_monotonic_boottime +++ a/kernel/sys.c @@ -2523,11 +2523,11 @@ static int do_sysinfo(struct sysinfo *in { 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); _
Patches currently in -mm which might be from arnd@arndb.de are
crash-print-timestamp-using-time64_t.patch sysinfo-remove-get_monotonic_boottime.patch