Page MenuHomeFreeBSD

pvclock: Add vDSO support
ClosedPublic

Authored by adam_fenn.io on Aug 5 2021, 2:29 AM.
Tags
None
Referenced Files
F137413614: D31418.id93678.diff
Sun, Nov 23, 5:40 AM
F137402454: D31418.diff
Sun, Nov 23, 2:59 AM
Unknown Object (File)
Wed, Nov 19, 10:59 AM
Unknown Object (File)
Tue, Nov 18, 4:44 AM
Unknown Object (File)
Sat, Nov 15, 4:53 AM
Unknown Object (File)
Tue, Nov 11, 9:18 PM
Unknown Object (File)
Mon, Nov 10, 2:22 PM
Unknown Object (File)
Sun, Nov 9, 8:31 AM

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

adam_fenn.io held this revision as a draft.
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);
}

?

This revision was not accepted when it landed; it landed in state Needs Review.Aug 14 2021, 12:59 PM
Closed by commit rG0b3382b863f3: pvclock: Add 'struct pvclock' API (authored by adam_fenn.io, committed by kib). · Explain Why
This revision was automatically updated to reflect the committed changes.