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>
This commit is contained in:
committed by
Martin Schwidefsky
parent
a9ae32c3d9
commit
a095a8a9d5
@@ -125,8 +125,7 @@ static inline int pcpu_stopped(struct pcpu *pcpu)
|
|||||||
if (__pcpu_sigp(pcpu->address, SIGP_SENSE,
|
if (__pcpu_sigp(pcpu->address, SIGP_SENSE,
|
||||||
0, &pcpu->status) != SIGP_CC_STATUS_STORED)
|
0, &pcpu->status) != SIGP_CC_STATUS_STORED)
|
||||||
return 0;
|
return 0;
|
||||||
/* Check for stopped and check stop state */
|
return !!(pcpu->status & (SIGP_STATUS_CHECK_STOP|SIGP_STATUS_STOPPED));
|
||||||
return !!(pcpu->status & 0x50);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int pcpu_running(struct pcpu *pcpu)
|
static inline int pcpu_running(struct pcpu *pcpu)
|
||||||
|
Reference in New Issue
Block a user