diff options
| author | Arnd Bergmann <[email protected]> | 2016-06-17 21:56:15 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2016-06-17 21:14:34 -0700 |
| commit | 70db384cd6dd780a32197c194ad41735630d265e (patch) | |
| tree | 358e3470c13f1953b98003d5a2c9e51fb9463fb0 /tools/perf/scripts/python/bin | |
| parent | 533364c7c6af7c995d8e2868b93883e6015812b4 (diff) | |
staging: comedi: avoid using timeval
Comedi uses 32-bit seconds for its timestamps, on both 32-bit and
64-bit machines. For all I can tell, this was originally meant as
a 'timespec', which would overflow in 2038 because of the use of
a signed 'long' on 32-bit machines, but it is now used as an
array of two unsigned 'lsampl_t' values in comedilib, which will
only overflow in 2106, on both 32-bit and 64-bit machines.
In an effort to get rid of all uses of 'struct timeval' in the kernel,
this replaces the internal code with a call to ktime_get_real_ts64()
and a comment at the location of the conversion.
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions