]> git.baikalelectronics.ru Git - kernel.git/commit
s390/smp: fix cpu re-scan vs. cpu state
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 15 May 2013 14:53:07 +0000 (16:53 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 17 May 2013 09:47:01 +0000 (11:47 +0200)
commit39a76509521062446b42b9c1443123f738126ad0
tree1262131d9ea966b683563e4ac4d30b7ab43c7739
parentfd17ec668c4ba3de1a109ab2204e1ddeb6f1825e
s390/smp: fix cpu re-scan vs. cpu state

The cpu-info array starts with a list of cpus in configured state,
followed by the cpus in standby state. The comparison to decide which
state a cpu has is incorrect, this causes configured cpus appear as
standby cpus. The correct comparison is the index of the new cpu in
the cpu-info array vs. the number of configured cpus.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/smp.c