Adam Steen wrote:
> Sorry, i sent that before i had finished.
>
> I am trying to find an equivalent of the following code for FreeBSD
we don't currently export this info, but we could add some sysctls. there's
some cpufeatures stuff there, but generally stuff isn't exported until
somebody finds a use for it... it shouldn't be too hard to add something to
amd64/machdep.c sysctl if you're interested.
>
> size_t outsz = sizeof bi->cpu.tsc_freq;
> int ret = sysctlbyname("machdep.tsc_freq", &bi->cpu.tsc_freq, &outsz,
> NULL,
> 0);