Austin English : ntdll: Use proper CPU speed detection on FreeBSD.
Alexandre Julliard
julliard at winehq.org
Thu Mar 1 13:12:59 CST 2012
Module: wine
Branch: master
Commit: 78f82fa063bdbbe319eadb457725e28af6b1ca19
URL: http://source.winehq.org/git/wine.git/?a=commit;h=78f82fa063bdbbe319eadb457725e28af6b1ca19
Author: Austin English <austinenglish at gmail.com>
Date: Wed Feb 29 16:09:59 2012 -0800
ntdll: Use proper CPU speed detection on FreeBSD.
Reported by Hardy Schumacher.
---
dlls/ntdll/nt.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/ntdll/nt.c b/dlls/ntdll/nt.c
index 30d3e34..3ed8038 100644
--- a/dlls/ntdll/nt.c
+++ b/dlls/ntdll/nt.c
@@ -1178,7 +1178,7 @@ void fill_cpu_info(void)
NtCurrentTeb()->Peb->NumberOfProcessors = num;
len = sizeof(num);
- if (!sysctlbyname("dev.cpu.0.freq", &num, &len, NULL, 0))
+ if (!sysctlbyname("hw.clockrate", &num, &len, NULL, 0))
cpuHz = num * 1000 * 1000;
}
#elif defined(__sun)
More information about the wine-cvs
mailing list