The core power down state for cpuidle will require that the CPS SMP
implementation is in use. This patch provides a mips_cps_smp_in_use
function which determines whether or not the CPS SMP implementation is
currently in use.
Signed-off-by: Paul Burton <paul.burton@imgtec.com>
extern struct vpe_boot_config *mips_cps_boot_vpes(void);
+extern bool mips_cps_smp_in_use(void);
+
#else /* __ASSEMBLY__ */
.extern mips_cps_bootcfg;
.cpus_done = cps_cpus_done,
};
+bool mips_cps_smp_in_use(void)
+{
+ extern struct plat_smp_ops *mp_ops;
+ return mp_ops == &cps_smp_ops;
+}
+
int register_cps_smp_ops(void)
{
if (!mips_cm_present()) {