[Bug 27189] Hydrophobia Prophecy wants GetLogicalProcessorInformation implemented

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Nov 22 17:38:55 CST 2011


http://bugs.winehq.org/show_bug.cgi?id=27189

--- Comment #3 from Claudio <sick_soul at yahoo.it> 2011-11-22 17:38:55 CST ---
Created attachment 37587
  --> http://bugs.winehq.org/attachment.cgi?id=37587
kernel32: implement GetLogicalProcessorInformation

This is the patch for glpi, works for me.
I added a test, removed the glpi-ex function implementation, that should be
separate I think.
I do not have any windows system, so tested only on my linux/x86 machines.
local commit comment follows.

kernel32: implement GetLogicalProcessorInformation

First implementation of GetLogicalProcessorInformation.
Limitations: all logical processors are added to the same NUMA set,
and all cores are added to the same package.
Only the linux-specific helper function is implemented, so for now
everybody else gets the fallback hard-coded results only.
The fallback is also triggered when the OS-specific APIs fail.

The linux-specific function is based on sysfs.

The new OS-specific functions can be easily added as additional
ifdefs by following the linux example.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list