diff options
author | Arnd Bergmann <[email protected]> | 2015-11-25 16:09:10 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2015-12-26 17:13:33 -0800 |
commit | 2bc29a1abc5c1b89576f8ae864cce9c07d18fd44 (patch) | |
tree | 6d2e107e9e0a4efac9a6603ac19d27ab5bf01508 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 02c34ccc1d2d528d2de2897881b97933363432b5 (diff) |
staging: gdm72xx: Replace timeval with ktime_t
struct sdu_stamp in the gdm_sdio.h is a timeval type.
'struct timeval now' is used for calculating elapsed time.
32-bit systems using 'struct timeval' will break in the year 2038,
so we have to replace that code with more appropriate types.
This patch changes the gdm72xx driver to use ktime_t.
ktime_get() is better than using do_gettimeofday(),
because it uses the monotonic clock. ktime_sub
are used to subtract two ktime variables.
Build tested this by saying Y to WIMAX_GDM72XX.
Signed-off-by: Tapasweni Pathak <[email protected]>
Reviewed-by: Arnd Bergmann <[email protected]>
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions