From 4de07b4be77ad695e3f57080a1f89cff24b1abad Mon Sep 17 00:00:00 2001 From: Manish Pandey Date: Thu, 18 Jul 2024 16:07:21 +0100 Subject: [PATCH] chore(spe): rename spe_disable() to spe_stop() During CPU power down, we stop the profiling by calling spe_disable() function. From TF-A point of view, enable/disable means the avaibility of the feature for lower EL. In this case we are not actully disabling the feautre but stoping it before power down. Signed-off-by: Manish Pandey Change-Id: I6e3b39c5c35d330c51e7ac715446a8b36bf9531f --- include/lib/extensions/spe.h | 4 ++-- lib/extensions/spe/spe.c | 2 +- lib/psci/psci_common.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/lib/extensions/spe.h b/include/lib/extensions/spe.h index c6e44f96b..bbfbd1983 100644 --- a/include/lib/extensions/spe.h +++ b/include/lib/extensions/spe.h @@ -13,7 +13,7 @@ #if ENABLE_SPE_FOR_NS void spe_enable(cpu_context_t *ctx); void spe_init_el2_unused(void); -void spe_disable(void); +void spe_stop(void); #else static inline void spe_enable(cpu_context_t *ctx) { @@ -21,7 +21,7 @@ static inline void spe_enable(cpu_context_t *ctx) static inline void spe_init_el2_unused(void) { } -static inline void spe_disable(void) +static inline void spe_stop(void) { } #endif /* ENABLE_SPE_FOR_NS */ diff --git a/lib/extensions/spe/spe.c b/lib/extensions/spe/spe.c index c6076fe1e..750a8cb93 100644 --- a/lib/extensions/spe/spe.c +++ b/lib/extensions/spe/spe.c @@ -70,7 +70,7 @@ void spe_init_el2_unused(void) write_mdcr_el2(v); } -void spe_disable(void) +void spe_stop(void) { uint64_t v; diff --git a/lib/psci/psci_common.c b/lib/psci/psci_common.c index 60449f646..9f0b19089 100644 --- a/lib/psci/psci_common.c +++ b/lib/psci/psci_common.c @@ -1303,7 +1303,7 @@ void psci_do_manage_extensions(void) * before exiting coherency. */ if (is_feat_spe_supported()) { - spe_disable(); + spe_stop(); } }