diff options
author | Will Deacon <[email protected]> | 2012-11-29 22:33:29 +0000 |
---|---|---|
committer | Catalin Marinas <[email protected]> | 2012-12-05 11:20:03 +0000 |
commit | 45a7905fc48f6079932e77d64237cf7f008db5f4 (patch) | |
tree | 93b60ea0b2c3daf94b50dfa3125b2a3c59a0ff1b /net/lapb/lapb_timer.c | |
parent | d91fb5c2677db90460611fce72e6a0af8f6c2a73 (diff) |
arm64: vdso: defer shifting of nanosecond component of timespec
Shifting the nanosecond component of the computed timespec early can
lead to sub-ns inaccuracies when using the truncated value as input to
further arithmetic for things like conversions to monotonic time.
This patch defers the timespec shifting until after the final value has
been computed.
Reported-by: John Stultz <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions