Skip to content

Commit

Permalink
s390/smp: use sigp cpu status definitions
Browse files Browse the repository at this point in the history
We got them from the kvm code, so let's use them.

Signed-off-by: Heiko Carstens <[email protected]>
Signed-off-by: Martin Schwidefsky <[email protected]>
  • Loading branch information
heicarst authored and Martin Schwidefsky committed Jun 5, 2012
1 parent a9ae32c commit a095a8a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/s390/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ static inline int pcpu_stopped(struct pcpu *pcpu)
if (__pcpu_sigp(pcpu->address, SIGP_SENSE,
0, &pcpu->status) != SIGP_CC_STATUS_STORED)
return 0;
/* Check for stopped and check stop state */
return !!(pcpu->status & 0x50);
return !!(pcpu->status & (SIGP_STATUS_CHECK_STOP|SIGP_STATUS_STOPPED));
}

static inline int pcpu_running(struct pcpu *pcpu)
Expand Down

0 comments on commit a095a8a

Please sign in to comment.