aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2012-06-04 08:07:47 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2012-06-05 07:23:36 -0400
commita095a8a9d5c2ffa15589298aabb64c75c39bf9be (patch)
tree112e092eaec3a6fecee21639566d1857c63c69df
parenta9ae32c3d9a6557f24db0e186bf2f84205780b8a (diff)
s390/smp: use sigp cpu status definitions
We got them from the kvm code, so let's use them. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
-rw-r--r--arch/s390/kernel/smp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/s390/kernel/smp.c b/arch/s390/kernel/smp.c
index 6e4047e4b498..53ac2344ca7a 100644
--- a/arch/s390/kernel/smp.c
+++ b/arch/s390/kernel/smp.c
@@ -125,8 +125,7 @@ static inline int pcpu_stopped(struct pcpu *pcpu)
125 if (__pcpu_sigp(pcpu->address, SIGP_SENSE, 125 if (__pcpu_sigp(pcpu->address, SIGP_SENSE,
126 0, &pcpu->status) != SIGP_CC_STATUS_STORED) 126 0, &pcpu->status) != SIGP_CC_STATUS_STORED)
127 return 0; 127 return 0;
128 /* Check for stopped and check stop state */ 128 return !!(pcpu->status & (SIGP_STATUS_CHECK_STOP|SIGP_STATUS_STOPPED));
129 return !!(pcpu->status & 0x50);
130} 129}
131 130
132static inline int pcpu_running(struct pcpu *pcpu) 131static inline int pcpu_running(struct pcpu *pcpu)