From: Patrick Delaunay <patrick.delaunay@st.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 6/6] psci: arm: remove armv7 function psci_save_target_pc
Date: Mon, 16 Apr 2018 10:15:12 +0200 [thread overview]
Message-ID: <1523866512-11112-6-git-send-email-patrick.delaunay@st.com> (raw)
In-Reply-To: <1523866512-11112-1-git-send-email-patrick.delaunay@st.com>
This function is no more used, and replaced by psci_save
which save also context id as requested by PSCI requirements.
Even if the context id is not used by Linux, it should be saved
and restored in r0 when the CPU_ON is performed.
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
---
arch/arm/cpu/armv7/psci-common.c | 7 -------
arch/arm/include/asm/psci.h | 3 +--
2 files changed, 1 insertion(+), 9 deletions(-)
diff --git a/arch/arm/cpu/armv7/psci-common.c b/arch/arm/cpu/armv7/psci-common.c
index 73f986b..a328b2b 100644
--- a/arch/arm/cpu/armv7/psci-common.c
+++ b/arch/arm/cpu/armv7/psci-common.c
@@ -27,13 +27,6 @@
static u32 psci_target_pc[CONFIG_ARMV7_PSCI_NR_CPUS] __secure_data = { 0 };
static u32 psci_context_id[CONFIG_ARMV7_PSCI_NR_CPUS] __secure_data = { 0 };
-void __secure psci_save_target_pc(int cpu, u32 pc)
-{
- psci_target_pc[cpu] = pc;
- psci_context_id[cpu] = 0;
- dsb();
-}
-
void __secure psci_save(int cpu, u32 pc, u32 context_id)
{
psci_target_pc[cpu] = pc;
diff --git a/arch/arm/include/asm/psci.h b/arch/arm/include/asm/psci.h
index b415241..95f18e8 100644
--- a/arch/arm/include/asm/psci.h
+++ b/arch/arm/include/asm/psci.h
@@ -93,10 +93,9 @@
#ifndef __ASSEMBLY__
#include <asm/types.h>
-/* These 4 helper functions assume cpu < CONFIG_ARMV7_PSCI_NR_CPUS */
+/* These 3 helper functions assume cpu < CONFIG_ARMV7_PSCI_NR_CPUS */
u32 psci_get_target_pc(int cpu);
u32 psci_get_context_id(int cpu);
-void psci_save_target_pc(int cpu, u32 pc);
void psci_save(int cpu, u32 pc, u32 context_id);
void psci_cpu_entry(void);
--
2.7.4
next prev 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 ` [U-Boot] [PATCH 5/6] sunxi: " Patrick Delaunay
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, 6/6] psci: arm: remove armv7 function psci_save_target_pc 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-6-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.