treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / mips / include / asm / smp-cps.h
blob7e5b9411faee0794f687340aedd8e0eeb212c610
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Copyright (C) 2013 Imagination Technologies
4 * Author: Paul Burton <paul.burton@mips.com>
5 */
7 #ifndef __MIPS_ASM_SMP_CPS_H__
8 #define __MIPS_ASM_SMP_CPS_H__
10 #ifndef __ASSEMBLY__
12 struct vpe_boot_config {
13 unsigned long pc;
14 unsigned long sp;
15 unsigned long gp;
18 struct core_boot_config {
19 atomic_t vpe_mask;
20 struct vpe_boot_config *vpe_config;
23 extern struct core_boot_config *mips_cps_core_bootcfg;
25 extern void mips_cps_core_entry(void);
26 extern void mips_cps_core_init(void);
28 extern void mips_cps_boot_vpes(struct core_boot_config *cfg, unsigned vpe);
30 extern void mips_cps_pm_save(void);
31 extern void mips_cps_pm_restore(void);
33 #ifdef CONFIG_MIPS_CPS
35 extern bool mips_cps_smp_in_use(void);
37 #else /* !CONFIG_MIPS_CPS */
39 static inline bool mips_cps_smp_in_use(void) { return false; }
41 #endif /* !CONFIG_MIPS_CPS */
43 #else /* __ASSEMBLY__ */
45 .extern mips_cps_bootcfg;
47 #endif /* __ASSEMBLY__ */
48 #endif /* __MIPS_ASM_SMP_CPS_H__ */