]> 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:50 +0000 (14:23 +0100)
commit7c870ee90f7c0f8264b58cf43616fa754993b9d1
treeb5e438524ecc6fcf3dc9d2624b07bd138d9e9de7
parent1069eab80aa6e9f195e8bf1f04e49f9d23d41bc5
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.03072 seconds and 5 git commands to generate.