Skip to contentSkip to conversation

armv8: layerscape: add PSCI support for cpu release

PATCH New Jiafei Pan 1 participant 1 message Apr 21, 2021 Arm (32-bit)

lore
Share & tools
lore

Jiafei Pan

author
#0 lore raw

PATCH 1/1 armv8: layerscape: add PSCI support for cpu release

For cpu release command, check whether PSCI is supported firstly, if supported, use PSCI to kick off secondary cores, otherwise still use spin table.

---
 arch/arm/cpu/armv8/fsl-layerscape/cpu.c |  2 +-
 arch/arm/cpu/armv8/fsl-layerscape/cpu.h |  1 +
 arch/arm/cpu/armv8/fsl-layerscape/mp.c  | 49 +++++++++++++++++--------
 3 files changed, 36 insertions(+), 16 deletions(-)
arch/arm/cpu/armv8/fsl-layerscape/cpu.c +1 -1
index 270a72e550..d0103fc881 100644
@@ -1063,7 +1063,7 @@ int cpu_eth_init(struct bd_info *bis)
 	return error;
 }
 
-static inline int check_psci(void)
+int check_psci(void)
 {
 	unsigned int psci_ver;
 
arch/arm/cpu/armv8/fsl-layerscape/cpu.h +1 -0
index dca5fd0f7d..45da95831e 100644
@@ -6,3 +6,4 @@
 int fsl_qoriq_core_to_cluster(unsigned int core);
 u32 initiator_type(u32 cluster, int init_id);
 u32 cpu_mask(void);
+int check_psci(void);
arch/arm/cpu/armv8/fsl-layerscape/mp.c +34 -15

68 lines not on this page · raw message

Signature · 1 line
2.17.1