diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-04-16 03:29:10 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-04-19 22:39:13 +0200 |
commit | 6e94d1ef37e439bf45659cc071553574ccb98080 (patch) | |
tree | ac0b5b9e98210b43a0b1e4ea62607ce41e24dbd7 /samples/uhid | |
parent | net: Add .gitignore to networking selftests directory. (diff) | |
download | linux-6e94d1ef37e439bf45659cc071553574ccb98080.tar.xz linux-6e94d1ef37e439bf45659cc071553574ccb98080.zip |
net: socket: move ktime2ts to ktime header api
Currently, ktime2ts is a small helper function that is only used in
net/socket.c. Move this helper into the ktime API as a small inline
function, so that i) it's maintained together with ktime routines,
and ii) also other files can make use of it. The function is named
ktime_to_timespec_cond() and placed into the generic part of ktime,
since we internally make use of ktime_to_timespec(). ktime_to_timespec()
itself does not check the ktime variable for zero, hence, we name
this function ktime_to_timespec_cond() for only a conditional
conversion, and adapt its users to it.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples/uhid')
0 files changed, 0 insertions, 0 deletions