]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
powerpc: xmon: use ktime_get_coarse_boottime64
authorArnd Bergmann <arnd@arndb.de>
Mon, 18 Jun 2018 09:56:24 +0000 (11:56 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 2 Jul 2018 13:54:27 +0000 (23:54 +1000)
commitf6bd74fa084eb9ad573ffbb236a095454163f66d
treeb8a64b7502b15525383afa5dbb66cd43eb3e38fe
parentee8c446fed99ffdc29dedf7d2a8854f1ea9a1022
powerpc: xmon: use ktime_get_coarse_boottime64

get_monotonic_boottime() is deprecated, and may not be safe to call in
every context, as it has to read a hardware clocksource.

This changes xmon to print the time using ktime_get_coarse_boottime64()
instead, which avoids the old timespec type and the HW access.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Balbir Singh <bsingharora@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/xmon/xmon.c