From 9074b9b8ad6cc2b352973f183b962dbe91973a72 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 26 Aug 2015 18:39:53 +0200 Subject: [PATCH] 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 --- 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 0c3f61b8d..ba25c1e33 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2015-08-26 Corinna Vinschen + + * fhandler_proc.cc (format_proc_cpuinfo): Only fetch group relations, + we don't need anything else. + 2015-08-25 Corinna Vinschen * 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 5d05757e8..fca8265fe 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 { -- 2.43.5