projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9ae32c
)
s390/smp: use sigp cpu status definitions
author
Heiko Carstens
<heiko.carstens@de.ibm.com>
Mon, 4 Jun 2012 12:07:47 +0000
(14:07 +0200)
committer
Martin Schwidefsky
<schwidefsky@de.ibm.com>
Tue, 5 Jun 2012 11:23:36 +0000
(13:23 +0200)
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>
arch/s390/kernel/smp.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/s390/kernel/smp.c
b/arch/s390/kernel/smp.c
index 6e4047e4b4983f5e963e3f56c8b4427d6101c897..53ac2344ca7a6749e8ae1bd802841b43842c06f4 100644
(file)
--- a/
arch/s390/kernel/smp.c
+++ b/
arch/s390/kernel/smp.c
@@
-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)