s390/smp: remove redundant check
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 4 Jun 2012 10:11:41 +0000 (12:11 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 5 Jun 2012 11:23:35 +0000 (13:23 +0200)
condition code "status stored" for sigp sense running always implies
that only the "not running" status bit is set. Therefore no need to
check if it is set.

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

index 15cca26ccb6c4ff1cbde51c60259a7ec95471718..c78074c6cc1d88e4a7237afe4f286808981f771a 100644 (file)
@@ -158,8 +158,8 @@ static inline int pcpu_running(struct pcpu *pcpu)
        if (__pcpu_sigp(pcpu->address, sigp_sense_running,
                        0, &pcpu->status) != sigp_status_stored)
                return 1;
-       /* Check for running status */
-       return !(pcpu->status & 0x400);
+       /* Status stored condition code is equivalent to cpu not running. */
+       return 0;
 }
 
 /*