HomeFreeBSD

Use atomic load & store for TSC frequency. It may be overkill for amd64 but
rS220433Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

Use atomic load & store for TSC frequency. It may be overkill for amd64 but
safer for i386 because it can be easily over 4 GHz now. More worse, it can
be easily changed by user with 'machdep.tsc_freq' tunable (directly) or
cpufreq(4) (indirectly). Note it is intentionally not used in performance
critical paths to avoid performance regression (but we should, in theory).
Alternatively, we may add "virtual TSC" with lower frequency if maximum
frequency overflows 32 bits (and ignore possible incoherency as we do now).

Details

Provenance
jkimAuthored on
Parents
rS220432: u3g.4:
Branches
Unknown
Tags
Unknown

Event Timeline