summaryrefslogtreecommitdiff
path: root/poc
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2018-02-07 07:30:10 -0800
committerPravin B Shelar <pshelar@ovn.org>2018-02-12 00:15:13 -0800
commit6deeb55a3ec9357c42c21ca1582668136ed264c4 (patch)
tree9f431a541fafc7d56f0f5c60ee643fd728662d32 /poc
parent55053088ff5117cb2649ae9ec10a6ffb119c230c (diff)
downloadopenvswitch-6deeb55a3ec9357c42c21ca1582668136ed264c4.tar.gz
datapath: use ktime_get_ts64() instead of ktime_get_ts()
Upstream commit: commit 311af51dcb5629f04976a8e451673f77e3301041 Author: Arnd Bergmann <arnd@arndb.de> Date: Mon Nov 27 12:41:38 2017 +0100 openvswitch: use ktime_get_ts64() instead of ktime_get_ts() timespec is deprecated because of the y2038 overflow, so let's convert this one to ktime_get_ts64(). The code is already safe even on 32-bit architectures, since it uses monotonic times. On 64-bit architectures, nothing changes, while on 32-bit architectures this avoids one type conversion. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: David S. Miller <davem@davemloft.net> Additional compatability check for ktime_get_ts64() exists or not. If not, then just continue using ktime_get_ts(). I added a new compatability header file "timekeeping.h". Cc: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Greg Rose <gvrose8192@gmail.com> Acked-by: Pravin B Shelar <pshelar@ovn.org>
Diffstat (limited to 'poc')
0 files changed, 0 insertions, 0 deletions