diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-08-02 14:04:16 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-08-02 19:35:08 -0400 |
commit | a9bfd3321713ecec86282dd2bec04212189f91f1 (patch) | |
tree | 1c5981e2d274c3d3fb3b340724939fffb7747eb8 /kernel/freezer.c | |
parent | f003a1f182bb821f13775338a4bf8711830f927a (diff) | |
download | linux-a9bfd3321713ecec86282dd2bec04212189f91f1.tar.gz linux-a9bfd3321713ecec86282dd2bec04212189f91f1.tar.bz2 linux-a9bfd3321713ecec86282dd2bec04212189f91f1.zip |
crc32: use ktime_get_ns() for measurement
The crc32 test function measures the elapsed time in nanoseconds, but
uses 'struct timespec' for that. We want to remove timespec from the
kernel for y2038 compatibility, and ktime_get_ns() also helps make the
code simpler here.
It is also slightly better to use monontonic time, as we are only
interested in the time difference.
Link: http://lkml.kernel.org/r/20160617143932.3289626-1-arnd@arndb.de
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: "David S . Miller" <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/freezer.c')
0 files changed, 0 insertions, 0 deletions