projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branches 'asoc/topic/devm', 'asoc/topic/fsl', 'asoc/topic/fsl...
[cascardo/linux.git]
/
arch
/
s390
/
include
/
asm
/
smp.h
diff --git
a/arch/s390/include/asm/smp.h
b/arch/s390/include/asm/smp.h
index
1607793
..
21703f8
100644
(file)
--- a/
arch/s390/include/asm/smp.h
+++ b/
arch/s390/include/asm/smp.h
@@
-7,6
+7,8
@@
#ifndef __ASM_SMP_H
#define __ASM_SMP_H
#ifndef __ASM_SMP_H
#define __ASM_SMP_H
+#include <asm/sigp.h>
+
#ifdef CONFIG_SMP
#include <asm/lowcore.h>
#ifdef CONFIG_SMP
#include <asm/lowcore.h>
@@
-50,9
+52,18
@@
static inline int smp_store_status(int cpu) { return 0; }
static inline int smp_vcpu_scheduled(int cpu) { return 1; }
static inline void smp_yield_cpu(int cpu) { }
static inline void smp_yield(void) { }
static inline int smp_vcpu_scheduled(int cpu) { return 1; }
static inline void smp_yield_cpu(int cpu) { }
static inline void smp_yield(void) { }
-static inline void smp_stop_cpu(void) { }
static inline void smp_fill_possible_mask(void) { }
static inline void smp_fill_possible_mask(void) { }
+static inline void smp_stop_cpu(void)
+{
+ u16 pcpu = stap();
+
+ for (;;) {
+ __pcpu_sigp(pcpu, SIGP_STOP, 0, NULL);
+ cpu_relax();
+ }
+}
+
#endif /* CONFIG_SMP */
#ifdef CONFIG_HOTPLUG_CPU
#endif /* CONFIG_SMP */
#ifdef CONFIG_HOTPLUG_CPU