ntdll: Set cpu frequency for FreeBSD 7.2 and higher.

This commit is contained in:
Freddie Tilley 2010-01-20 11:59:25 +01:00 committed by Alexandre Julliard
parent 06c45a8d59
commit 69d7233e3e
1 changed files with 4 additions and 0 deletions

View File

@ -1136,6 +1136,10 @@ void fill_cpu_info(void)
ret = sysctlbyname("hw.ncpu", &num, &len, NULL, 0);
if (!ret)
NtCurrentTeb()->Peb->NumberOfProcessors = num;
len = sizeof(num);
if (!sysctlbyname("dev.cpu.0.freq", &num, &len, NULL, 0))
cpuHz = num * 1000 * 1000;
}
#elif defined(__sun)
{