http://bugs.winehq.org/show_bug.cgi?id=27189
--- Comment #3 from Claudio sick_soul@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.