Browse Source

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 <manish.pandey2@arm.com>
Change-Id: I6e3b39c5c35d330c51e7ac715446a8b36bf9531f
pull/1996/merge
Manish Pandey 4 months ago
parent
commit
4de07b4be7
  1. 4
      include/lib/extensions/spe.h
  2. 2
      lib/extensions/spe/spe.c
  3. 2
      lib/psci/psci_common.c

4
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 */

2
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;

2
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();
}
}

Loading…
Cancel
Save