Add vDSO support for timekeeping devices that support the KVM/XEN
paravirtual clock API.
Details
Details
- Reviewers
kib markj stevek royger - Commits
- rG2a16b0f333d4: libc: vDSO timekeeping: Add pvclock support
rG4b34c91973dd: pvclock: Add vDSO support
rG249f2478e382: pvclock: Add 'struct pvclock' API
rGa3d932dfef5e: libc: vDSO timekeeping: Add pvclock support
rGd4b2d3035a23: pvclock: Add vDSO support
rG0b3382b863f3: pvclock: Add 'struct pvclock' API
Tested as part of testing D29733.
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 40879 Build 37768: arc lint + arc unit
Event Timeline
sys/x86/x86/pvclock.c | ||
---|---|---|
150 | Should it (formally) be atomic_cmpset_rel_64? | |
153 | Could this be written more simply as: ret = now; if ((flags & PVCLOCK_FLAG_TSC_STABLE) == 0) { last = atomic_load_acq_64(&pvclock_last_systime); do { if (last > now) { ret = last; break; } } while (!atomic_fcmpset_64(&pvclock_last_systime, &last, now); } ? |