Alexander Gordeev 905b247f6e 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:34:13 +02:00
..
2021-12-16 19:58:07 +01:00
2021-12-13 12:04:45 -06:00
2021-01-19 12:29:26 +01:00
2023-03-10 09:33:52 +01:00
2022-09-14 16:46:00 +02:00
2022-03-28 17:29:53 -07:00
2022-05-11 14:40:57 +02:00
2023-05-17 11:53:38 +02:00
2023-03-10 09:34:04 +01:00
2022-03-10 15:58:17 +01:00