diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2012-06-04 12:11:41 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2012-06-05 13:23:35 +0200 |
commit | 524b24ada792b40e1eb2eae59f7a096f26c3b788 (patch) | |
tree | eed4d3e7dc866619b3bceedb641722292018609a /arch/s390/kernel/smp.c | |
parent | 569ba7d2083681abbfc2f6d6550e74e64833dada (diff) | |
download | blackbird-op-linux-524b24ada792b40e1eb2eae59f7a096f26c3b788.tar.gz blackbird-op-linux-524b24ada792b40e1eb2eae59f7a096f26c3b788.zip |
s390/smp: remove redundant check
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>
Diffstat (limited to 'arch/s390/kernel/smp.c')
-rw-r--r-- | arch/s390/kernel/smp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/kernel/smp.c b/arch/s390/kernel/smp.c index 15cca26ccb6c..c78074c6cc1d 100644 --- a/arch/s390/kernel/smp.c +++ b/arch/s390/kernel/smp.c @@ -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; } /* |