[newlib-cygwin] fhandler_proc.cc: Only request group relation information

Corinna Vinschen corinna@sourceware.org
Wed Aug 26 16:40:00 GMT 2015


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=9074b9b8ad6cc2b352973f183b962dbe91973a72

commit 9074b9b8ad6cc2b352973f183b962dbe91973a72
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Wed Aug 26 18:39:53 2015 +0200

    fhandler_proc.cc: Only request group relation information
    
            * fhandler_proc.cc (format_proc_cpuinfo): Only fetch group relations,
            we don't need anything else.
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/cygwin/ChangeLog        | 5 +++++
 winsup/cygwin/fhandler_proc.cc | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 0c3f61b..ba25c1e 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2015-08-26  Corinna Vinschen  <corinna@vinschen.de>
+
+	* fhandler_proc.cc (format_proc_cpuinfo): Only fetch group relations,
+	we don't need anything else.
+
 2015-08-25  Corinna Vinschen  <corinna@vinschen.de>
 
 	* winsup.h (_WIN32_WINNT): Set to 0x0a00 for Windows 10.
diff --git a/winsup/cygwin/fhandler_proc.cc b/winsup/cygwin/fhandler_proc.cc
index 5d05757..fca8265 100644
--- a/winsup/cygwin/fhandler_proc.cc
+++ b/winsup/cygwin/fhandler_proc.cc
@@ -641,7 +641,7 @@ format_proc_cpuinfo (void *, char *&destbuf)
       PSYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX lpi =
 		(PSYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX) tp.c_get ();
       lpi_size = NT_MAX_PATH;
-      if (!GetLogicalProcessorInformationEx (RelationAll, lpi, &lpi_size))
+      if (!GetLogicalProcessorInformationEx (RelationGroup, lpi, &lpi_size))
 	lpi = NULL;
       else
 	{



More information about the Cygwin-cvs mailing list