]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/eeh: Stop using do_gettimeofday()
authorArnd Bergmann <arnd@arndb.de>
Sat, 4 Nov 2017 21:26:52 +0000 (22:26 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 6 Nov 2017 06:40:00 +0000 (17:40 +1100)
commit9b3ef1e32d816a92c186423891960345c56ba565
treeb5802f2d9eb65d657f714f31329d2b07487a7834
parentf8c325783a1d496b72981fddae0d546d51475ad3
powerpc/eeh: Stop using do_gettimeofday()

This interface is inefficient and deprecated because of the y2038
overflow.

ktime_get_seconds() is an appropriate replacement here, since it
has sufficient granularity but is more efficient and uses monotonic
time.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Acked-by: Russell Currey <ruscur@russell.cc>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/eeh.h
arch/powerpc/kernel/eeh_driver.c
arch/powerpc/kernel/eeh_pe.c