Commit 69d7233e authored by Freddie Tilley's avatar Freddie Tilley Committed by Alexandre Julliard

ntdll: Set cpu frequency for FreeBSD 7.2 and higher.

parent 06c45a8d
...@@ -1136,6 +1136,10 @@ void fill_cpu_info(void) ...@@ -1136,6 +1136,10 @@ void fill_cpu_info(void)
ret = sysctlbyname("hw.ncpu", &num, &len, NULL, 0); ret = sysctlbyname("hw.ncpu", &num, &len, NULL, 0);
if (!ret) if (!ret)
NtCurrentTeb()->Peb->NumberOfProcessors = num; NtCurrentTeb()->Peb->NumberOfProcessors = num;
len = sizeof(num);
if (!sysctlbyname("dev.cpu.0.freq", &num, &len, NULL, 0))
cpuHz = num * 1000 * 1000;
} }
#elif defined(__sun) #elif defined(__sun)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment