OSDN Git Service

s390/smp: fix sigp cpu detection loop
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 17 Jun 2015 08:45:31 +0000 (10:45 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 25 Jun 2015 07:39:24 +0000 (09:39 +0200)
commite7086eb18119933753fceacfee662307b5e1d1c1
tree7cde8c678f2da02dad30cb914efcbcccee483aab
parentc50a160c176aadfbbbeed69a55caf1040b22692e
s390/smp: fix sigp cpu detection loop

On a (theoretical) system where the read-cpu-info SCLP command does
not work but SMT is enabled, the sigp detection loop may not find
all configured cores. The maximum CPU address needs to be shifted
with smp_cpu_mt_shift.

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