From: Patrick Delaunay Date: Mon, 16 Apr 2018 08:15:10 +0000 (+0200) Subject: uniphier: psci: save context id in cpu_on command X-Git-Tag: v2018.07-rc1~246 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4f7dc2e6037c685a22a81148f0c87005b45181d9;p=u-boot uniphier: psci: save context id in cpu_on command Replace the psci_save_target_pc call by the new function psci_save(cpu, pc,context_id) Signed-off-by: Patrick Delaunay Acked-by: Masahiro Yamada --- diff --git a/arch/arm/mach-uniphier/arm32/psci.c b/arch/arm/mach-uniphier/arm32/psci.c index 92ec7a9456..3f67edf26e 100644 --- a/arch/arm/mach-uniphier/arm32/psci.c +++ b/arch/arm/mach-uniphier/arm32/psci.c @@ -130,7 +130,8 @@ void psci_arch_init(void) u32 uniphier_psci_holding_pen_release __secure_data = 0xffffffff; -int __secure psci_cpu_on(u32 function_id, u32 cpuid, u32 entry_point) +int __secure psci_cpu_on(u32 function_id, u32 cpuid, u32 entry_point, + u32 context_id) { u32 cpu = cpuid & 0xff; @@ -138,9 +139,11 @@ int __secure psci_cpu_on(u32 function_id, u32 cpuid, u32 entry_point) debug_puth(cpuid); debug_puts(", entry_point="); debug_puth(entry_point); + debug_puts(", context_id="); + debug_puth(context_id); debug_puts("\n"); - psci_save_target_pc(cpu, entry_point); + psci_save(cpu, entry_point, context_id); /* We assume D-cache is off, so do not call flush_dcache() here */ uniphier_psci_holding_pen_release = cpu;