Skip to content
Snippets Groups Projects
Commit 91ec87d5 authored by Andy Lutomirski's avatar Andy Lutomirski Committed by John Stultz
Browse files

x86-64: Simplify and optimize vdso clock_gettime monotonic variants


We used to store the wall-to-monotonic offset and the realtime base.
It's faster to precompute the monotonic base.

This is about a 3% speedup on Sandy Bridge for CLOCK_MONOTONIC.
It's much more impressive for CLOCK_MONOTONIC_COARSE.

Signed-off-by: default avatarAndy Lutomirski <luto@amacapital.net>
Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
parent 88b28adf
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment