diff options
| author | Tina Ruchandani <[email protected]> | 2014-10-30 14:35:01 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2014-10-30 14:41:59 -0700 |
| commit | 9056be30542bfff51190bdda67088f319cf4c9f5 (patch) | |
| tree | 188e27d7ab51cb974b8ef7d92084a9232701a157 /tools/perf/scripts/python/bin | |
| parent | 60444139a0ae5c4c4a4f4a7494a8ec0a1785979a (diff) | |
Staging: lustre: lnet: lnet: Better cookie gen
api-ni.c uses do_gettimeofday to get a 'cookie' or timestamp.
This patch replaces it with ktime_get_ns for the following reasons:
1. ktime_get_ns returns a __u64 which is safer than 'struct timeval'
which will overflow on 32-bit systems in year 2038 and beyond.
2. Improved resolution: nsecs instead of usecs.
3. Reduced compute: ktime_get_ns is faster than the multiply/add
combination used in this function
Signed-off-by: Tina Ruchandani <[email protected]>
Suggested-by: Arnd Bergmann <[email protected]>
Reviewed-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