armv8: layerscape: add PSCI support for cpu release
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.
Signed-off-by Jiafei Pan <[email protected]>
--- 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
@@ -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
@@ -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