summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/cadence/macb.h
diff options
context:
space:
mode:
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>2016-02-10 10:08:54 +0530
committerDavid S. Miller <davem@davemloft.net>2016-02-11 09:54:54 -0500
commite6515203202a913816abb3fb808e71e3a2a0967e (patch)
tree15e3caffeec4dbc81ac66959e4600e54cc9b8f02 /drivers/net/ethernet/cadence/macb.h
parent4a92602aa1cd5bbaeedbd9536ff992f7d26fe9d1 (diff)
net: hamradio: baycom_ser_fdx: Replace timeval with timespec64
32 bit systems using 'struct timeval' will break in the year 2038, so we replace the code appropriately. However, this driver is not broken in 2038 since we are only using microseconds portion of the time. This patch replaces 'struct timeval' with 'struct timespec64'. We only need to find elapsed microseconds rather than absolute time, so it's better to use monotonic time, so using ktime_get_ts64() makes the code more efficient and more robust against concurrent settimeofday() calls. Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Thomas Sailer <t.sailer@alumni.ethz.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cadence/macb.h')
0 files changed, 0 insertions, 0 deletions