All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick Delaunay <patrick.delaunay@st.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 5/6] sunxi: psci: save context id in cpu_on command
Date: Mon, 16 Apr 2018 10:15:11 +0200	[thread overview]
Message-ID: <1523866512-11112-5-git-send-email-patrick.delaunay@st.com> (raw)
In-Reply-To: <1523866512-11112-1-git-send-email-patrick.delaunay@st.com>

Replace the psci_save_target_pc call by the new function
psci_save(cpu, pc,context_id)

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
---

 arch/arm/cpu/armv7/sunxi/psci.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/arch/arm/cpu/armv7/sunxi/psci.c b/arch/arm/cpu/armv7/sunxi/psci.c
index 18da9cb..11b21fe 100644
--- a/arch/arm/cpu/armv7/sunxi/psci.c
+++ b/arch/arm/cpu/armv7/sunxi/psci.c
@@ -243,14 +243,15 @@ out:
 	cp15_write_scr(scr);
 }
 
-int __secure psci_cpu_on(u32 __always_unused unused, u32 mpidr, u32 pc)
+int __secure psci_cpu_on(u32 __always_unused unused, u32 mpidr, u32 pc,
+			 u32 context_id)
 {
 	struct sunxi_cpucfg_reg *cpucfg =
 		(struct sunxi_cpucfg_reg *)SUNXI_CPUCFG_BASE;
 	u32 cpu = (mpidr & 0x3);
 
-	/* store target PC */
-	psci_save_target_pc(cpu, pc);
+	/* store target PC and context id */
+	psci_save(cpu, pc, context_id);
 
 	/* Set secondary core power on PC */
 	sunxi_set_entry_address(&psci_cpu_entry);
-- 
2.7.4

  parent reply	other threads:[~2018-04-16  8:15 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-16  8:15 [U-Boot] [PATCH 1/6] ls102xa: psci: save context id in cpu_on command Patrick Delaunay
2018-04-16  8:15 ` [U-Boot] [PATCH 2/6] imx7: " Patrick Delaunay
2018-05-08  0:44   ` [U-Boot] [U-Boot, " Tom Rini
2018-05-08  0:44   ` Tom Rini
2018-04-16  8:15 ` [U-Boot] [PATCH 3/6] tegra: " Patrick Delaunay
2018-04-16 16:17   ` Stephen Warren
2018-04-18 13:58     ` Patrick DELAUNAY
2018-04-18 15:23       ` Stephen Warren
2018-04-18 16:07         ` Tom Rini
2018-05-08  0:45   ` [U-Boot] [U-Boot, " Tom Rini
2018-04-16  8:15 ` [U-Boot] [PATCH 4/6] uniphier: " Patrick Delaunay
2018-04-20  9:06   ` Masahiro Yamada
2018-05-08  0:45   ` [U-Boot] [U-Boot, " Tom Rini
2018-04-16  8:15 ` Patrick Delaunay [this message]
2018-05-08  0:45   ` [U-Boot] [U-Boot, 5/6] sunxi: " Tom Rini
2018-04-16  8:15 ` [U-Boot] [PATCH 6/6] psci: arm: remove armv7 function psci_save_target_pc Patrick Delaunay
2018-05-08  0:45   ` [U-Boot] [U-Boot, " Tom Rini
2018-05-08  0:44 ` [U-Boot] [U-Boot, 1/6] ls102xa: psci: save context id in cpu_on command Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1523866512-11112-5-git-send-email-patrick.delaunay@st.com \
    --to=patrick.delaunay@st.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.