diff options
author | Will Deacon <will.deacon@arm.com> | 2012-11-29 22:11:51 (GMT) |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2012-12-05 11:20:03 (GMT) |
commit | f84a935db47d7f261c025ba9eaa7700261257469 (patch) | |
tree | 0df122141ab5862220184f5f6746038daf925cf3 /.mailmap | |
parent | 251db45336c8fb5fd0c36f71aabc6950e427110f (diff) | |
download | linux-fsl-qoriq-f84a935db47d7f261c025ba9eaa7700261257469.tar.xz |
arm64: vdso: check sequence counter even for coarse realtime operations
When returning coarse realtime values from clock_gettime, we must still
check the sequence counter to ensure that the kernel does not update
the vdso datapage whilst we are loading the coarse timespec as this
could potentially result in time appearing to go backwards.
This patch delays the coarse realtime check until after we have loaded
successfully from the vdso datapage. This does mean that we always load
the wtm timespec, but conditionalising the load and adding an extra
sequence test is unlikely to buy us anything other than messy code,
particularly as the sequence test implies a read barrier.
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions