summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/eeh.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-11-04 22:26:52 +0100
committerMichael Ellerman <mpe@ellerman.id.au>2017-11-06 17:40:00 +1100
commitedfd17ff39bce59886e8249e645d6ecfc3e3829c (patch)
treeb5802f2d9eb65d657f714f31329d2b07487a7834 /arch/powerpc/include/asm/eeh.h
parentcbb55eeb49b116bb3880137661ad8ce1ed45d672 (diff)
downloadblackbird-obmc-linux-edfd17ff39bce59886e8249e645d6ecfc3e3829c.tar.gz
blackbird-obmc-linux-edfd17ff39bce59886e8249e645d6ecfc3e3829c.zip
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>
Diffstat (limited to 'arch/powerpc/include/asm/eeh.h')
-rw-r--r--arch/powerpc/include/asm/eeh.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/eeh.h b/arch/powerpc/include/asm/eeh.h
index cd1df96335e5..5161c37dd039 100644
--- a/arch/powerpc/include/asm/eeh.h
+++ b/arch/powerpc/include/asm/eeh.h
@@ -93,7 +93,7 @@ struct eeh_pe {
struct pci_bus *bus; /* Top PCI bus for bus PE */
int check_count; /* Times of ignored error */
int freeze_count; /* Times of froze up */
- struct timeval tstamp; /* Time on first-time freeze */
+ time64_t tstamp; /* Time on first-time freeze */
int false_positives; /* Times of reported #ff's */
atomic_t pass_dev_cnt; /* Count of passed through devs */
struct eeh_pe *parent; /* Parent PE */
OpenPOWER on IntegriCloud