This source file includes following definitions.
- mips_cps_smp_in_use
1
2
3
4
5
6
7 #ifndef __MIPS_ASM_SMP_CPS_H__
8 #define __MIPS_ASM_SMP_CPS_H__
9
10 #ifndef __ASSEMBLY__
11
12 struct vpe_boot_config {
13 unsigned long pc;
14 unsigned long sp;
15 unsigned long gp;
16 };
17
18 struct core_boot_config {
19 atomic_t vpe_mask;
20 struct vpe_boot_config *vpe_config;
21 };
22
23 extern struct core_boot_config *mips_cps_core_bootcfg;
24
25 extern void mips_cps_core_entry(void);
26 extern void mips_cps_core_init(void);
27
28 extern void mips_cps_boot_vpes(struct core_boot_config *cfg, unsigned vpe);
29
30 extern void mips_cps_pm_save(void);
31 extern void mips_cps_pm_restore(void);
32
33 #ifdef CONFIG_MIPS_CPS
34
35 extern bool mips_cps_smp_in_use(void);
36
37 #else
38
39 static inline bool mips_cps_smp_in_use(void) { return false; }
40
41 #endif
42
43 #else
44
45 .extern mips_cps_bootcfg;
46
47 #endif
48 #endif