svn commit: r184108 - head/sys/i386/i386

Dag-Erling Smørgrav des at des.no
Thu Oct 23 11:57:58 UTC 2008


"Attilio Rao" <attilio at freebsd.org> writes:
> I think it is silly we have different quirks flag states for TSC.  We
> should just having a table assuming that the TSC is safe to use in SMP
> environments and gets rid of any other flag (in this case, for amd64
> based machine, the logic could, for example, check if the CPU is P
> state invariant and assume it is safe, etc.)

No, these are two entirely different things.  An SMP-safe TSC is a TSC
that is synchronized across cores / packages.  A P-state invariant TSC
is a TSC that does not vary with the CPU frequency.  One does not imply
the other, and in many cases (if not most), there is no way to detect
programmatically that the TSC is SMP-safe or P-state invariant or both.

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the svn-src-head mailing list