]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: /proc/cpuinfo: Always print topology info
authorCorinna Vinschen <corinna@vinschen.de>
Mon, 16 Jan 2023 13:23:38 +0000 (14:23 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 16 Jan 2023 13:23:38 +0000 (14:23 +0100)
commit75c375e86df31fefc85a54a060283fe7389c8c6b
tree768c21507696735feaeaee8102873648b7f00036
parent34b361c903c6409a41c9404590885d4d4b7c6a06
Cygwin: /proc/cpuinfo: Always print topology info

vmstat from proc-ps-4.0.x prints "Unable to create system stat structure"
if the /proc/cpuinfo output fails to contain topology info.  While
Linux always prints topology info if the kernel has been built with
CONFIG_SMP, Cygwin only prints topology info if the CPU is known to
be multi-core (i. e., the HT feature flag is set).

Fix that by printing topology info all the time, even for single-core
CPUs.

Fixes: e0d48debedfa ("Fix /proc/cpuinfo topology and cache size info")
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/fhandler/proc.cc
winsup/cygwin/release/3.4.4
This page took 0.032943 seconds and 5 git commands to generate.