summaryrefslogtreecommitdiffstats
path: root/drivers/connector
diff options
context:
space:
mode:
authorMatt Helsley <matthltc@us.ibm.com>2005-12-12 09:37:09 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2005-12-12 17:57:42 +0100
commit64123fd42c7a1e4ebf6acd2399c98caddc7e0c26 (patch)
treed6b1794fa33287d145a44ab55bc2e2ef65ebf248 /drivers/connector
parent[PATCH] Fix listxattr() for generic security attributes (diff)
downloadlinux-64123fd42c7a1e4ebf6acd2399c98caddc7e0c26.tar.xz
linux-64123fd42c7a1e4ebf6acd2399c98caddc7e0c26.zip
[PATCH] Add getnstimestamp function
There are several functions that might seem appropriate for a timestamp: get_cycles() current_kernel_time() do_gettimeofday() <read jiffies/jiffies_64> Each has problems with combinations of SMP-safety, low resolution, and monotonicity. This patch adds a new function that returns a monotonic SMP-safe timestamp with nanosecond resolution where available. Changes: Split timestamp into separate patch Moved to kernel/time.c Renamed to getnstimestamp Fixed unintended-pointer-arithmetic bug Signed-off-by: Matt Helsley <matthltc@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/connector')
0 files changed, 0 insertions, 0 deletions