Alexander Gordeev 66f05cf2b2 s390/topology: honour nr_cpu_ids when adding CPUs
[ Upstream commit a33239be2d38ff5a44427db1707c08787508d34a ]

When SMT thread CPUs are added to CPU masks the nr_cpu_ids
limit is not checked and could be exceeded. This leads to
a warning for example if CONFIG_DEBUG_PER_CPU_MAPS is set
and the command line parameter nr_cpus is set to 1.

Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-06-09 10:32:25 +02:00
..
2021-08-05 14:10:53 +02:00
2021-07-27 09:39:19 +02:00
2023-02-01 08:27:20 +01:00
2021-01-19 12:29:26 +01:00
2023-03-17 08:48:57 +01:00
2021-08-03 14:31:40 +02:00
2023-03-10 09:39:50 +01:00
2020-06-29 16:31:46 +02:00
2021-08-05 14:10:53 +02:00
2023-02-01 08:27:20 +01:00
2022-06-09 10:23:21 +02:00
2021-07-08 15:37:28 +02:00