forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 10ebd8556b7990499c896a550e3d416b444211e6
kernel/arch/s390/include/asm/smp.h
....@@ -9,10 +9,8 @@
99 #define __ASM_SMP_H
1010
1111 #include <asm/sigp.h>
12
-
13
-#ifdef CONFIG_SMP
14
-
1512 #include <asm/lowcore.h>
13
+#include <asm/processor.h>
1614
1715 #define raw_smp_processor_id() (S390_lowcore.cpu_nr)
1816
....@@ -33,39 +31,12 @@
3331 extern int smp_find_processor_id(u16 address);
3432 extern int smp_store_status(int cpu);
3533 extern void smp_save_dump_cpus(void);
36
-extern int smp_vcpu_scheduled(int cpu);
3734 extern void smp_yield_cpu(int cpu);
3835 extern void smp_cpu_set_polarization(int cpu, int val);
3936 extern int smp_cpu_get_polarization(int cpu);
37
+extern int smp_cpu_get_cpu_address(int cpu);
4038 extern void smp_fill_possible_mask(void);
4139 extern void smp_detect_cpus(void);
42
-
43
-#else /* CONFIG_SMP */
44
-
45
-#define smp_cpu_mtid 0
46
-
47
-static inline void smp_call_ipl_cpu(void (*func)(void *), void *data)
48
-{
49
- func(data);
50
-}
51
-
52
-static inline void smp_call_online_cpu(void (*func)(void *), void *data)
53
-{
54
- func(data);
55
-}
56
-
57
-static inline void smp_emergency_stop(void)
58
-{
59
-}
60
-
61
-static inline int smp_find_processor_id(u16 address) { return 0; }
62
-static inline int smp_store_status(int cpu) { return 0; }
63
-static inline int smp_vcpu_scheduled(int cpu) { return 1; }
64
-static inline void smp_yield_cpu(int cpu) { }
65
-static inline void smp_fill_possible_mask(void) { }
66
-static inline void smp_detect_cpus(void) { }
67
-
68
-#endif /* CONFIG_SMP */
6940
7041 static inline void smp_stop_cpu(void)
7142 {
....@@ -83,14 +54,14 @@
8354 return cpu - (cpu % (smp_cpu_mtid + 1));
8455 }
8556
86
-#ifdef CONFIG_HOTPLUG_CPU
57
+static inline void smp_cpus_done(unsigned int max_cpus)
58
+{
59
+}
60
+
8761 extern int smp_rescan_cpus(void);
8862 extern void __noreturn cpu_die(void);
8963 extern void __cpu_die(unsigned int cpu);
9064 extern int __cpu_disable(void);
91
-#else
92
-static inline int smp_rescan_cpus(void) { return 0; }
93
-static inline void cpu_die(void) { }
94
-#endif
65
+extern void schedule_mcck_handler(void);
9566
9667 #endif /* __ASM_SMP_H */