OSDN Git Service

s390/topology: remove offline CPUs from CPU topology masks
authorAlexander Gordeev <agordeev@linux.ibm.com>
Thu, 12 Mar 2020 10:32:23 +0000 (11:32 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 23 Mar 2020 12:41:54 +0000 (13:41 +0100)
commit52aeda7accb6d2e511a1b89142cbbf6fd2c12565
tree53118aca208bce826758e4cb87a7a4ce75bbd282
parentcd8e702f0db75f28d0fbdc574a8fcda4aca0b09b
s390/topology: remove offline CPUs from CPU topology masks

The CPU topology masks on s390 contain also bits of CPUs which
are offline. Currently this is already a problem, since common
code scheduler expects e.g. cpu_smt_mask() to reflect reality.

This update changes the described behaviour and s390 starts to
behave like all other architectures.

Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/topology.h
arch/s390/kernel/smp.c
arch/s390/kernel/topology.c