diff options
author | Soby Mathew <soby.mathew@arm.com> | 2018-10-02 10:12:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-02 10:12:32 +0100 |
commit | 3ccfcd6e3dbc742ff15ead72d432427a38de650c (patch) | |
tree | 89dd07f10f24d0ac19e2f02c0d2470e6309a9e42 /lib/psci | |
parent | 9a983cfec21dea9347e191434ee704c57a55bda1 (diff) | |
parent | 991f1f4d94560adec7f4679339b3e6b4916d6896 (diff) |
Merge pull request #1587 from antonio-nino-diaz-arm/an/deprecated
Remove deprecated interfaces for all platforms
Diffstat (limited to 'lib/psci')
-rw-r--r-- | lib/psci/aarch64/psci_helpers.S | 12 | ||||
-rw-r--r-- | lib/psci/psci_common.c | 78 |
2 files changed, 0 insertions, 90 deletions
diff --git a/lib/psci/aarch64/psci_helpers.S b/lib/psci/aarch64/psci_helpers.S index 06d6636e..88db1c96 100644 --- a/lib/psci/aarch64/psci_helpers.S +++ b/lib/psci/aarch64/psci_helpers.S @@ -12,9 +12,6 @@ .globl psci_do_pwrdown_cache_maintenance .globl psci_do_pwrup_cache_maintenance .globl psci_power_down_wfi -#if !ERROR_DEPRECATED - .globl psci_entrypoint -#endif /* ----------------------------------------------------------------------- * void psci_do_pwrdown_cache_maintenance(unsigned int power level); @@ -131,12 +128,3 @@ func psci_power_down_wfi wfi no_ret plat_panic_handler endfunc psci_power_down_wfi - -/* ----------------------------------------------------------------------- - * void psci_entrypoint(void); - * The deprecated entry point for PSCI on warm boot for AArch64. - * ----------------------------------------------------------------------- - */ -func_deprecated psci_entrypoint - b bl31_warm_entrypoint -endfunc_deprecated psci_entrypoint diff --git a/lib/psci/psci_common.c b/lib/psci/psci_common.c index ec74a8cd..b877b4ba 100644 --- a/lib/psci/psci_common.c +++ b/lib/psci/psci_common.c @@ -938,84 +938,6 @@ int psci_secondaries_brought_up(void) return (n_valid > 1U) ? 1 : 0; } -#if ENABLE_PLAT_COMPAT -/******************************************************************************* - * PSCI Compatibility helper function to return the 'power_state' parameter of - * the PSCI CPU SUSPEND request for the current CPU. Returns PSCI_INVALID_DATA - * if not invoked within CPU_SUSPEND for the current CPU. - ******************************************************************************/ -int psci_get_suspend_powerstate(void) -{ - /* Sanity check to verify that CPU is within CPU_SUSPEND */ - if (psci_get_aff_info_state() == AFF_STATE_ON && - !is_local_state_run(psci_get_cpu_local_state())) - return psci_power_state_compat[plat_my_core_pos()]; - - return PSCI_INVALID_DATA; -} - -/******************************************************************************* - * PSCI Compatibility helper function to return the state id of the current - * cpu encoded in the 'power_state' parameter. Returns PSCI_INVALID_DATA - * if not invoked within CPU_SUSPEND for the current CPU. - ******************************************************************************/ -int psci_get_suspend_stateid(void) -{ - unsigned int power_state; - power_state = psci_get_suspend_powerstate(); - if (power_state != PSCI_INVALID_DATA) - return psci_get_pstate_id(power_state); - - return PSCI_INVALID_DATA; -} - -/******************************************************************************* - * PSCI Compatibility helper function to return the state id encoded in the - * 'power_state' parameter of the CPU specified by 'mpidr'. Returns - * PSCI_INVALID_DATA if the CPU is not in CPU_SUSPEND. - ******************************************************************************/ -int psci_get_suspend_stateid_by_mpidr(unsigned long mpidr) -{ - int cpu_idx = plat_core_pos_by_mpidr(mpidr); - - if (cpu_idx == -1) - return PSCI_INVALID_DATA; - - /* Sanity check to verify that the CPU is in CPU_SUSPEND */ - if ((psci_get_aff_info_state_by_idx(cpu_idx) == AFF_STATE_ON) && - (!is_local_state_run(psci_get_cpu_local_state_by_idx(cpu_idx)))) - return psci_get_pstate_id(psci_power_state_compat[cpu_idx]); - - return PSCI_INVALID_DATA; -} - -/******************************************************************************* - * This function returns highest affinity level which is in OFF - * state. The affinity instance with which the level is associated is - * determined by the caller. - ******************************************************************************/ -unsigned int psci_get_max_phys_off_afflvl(void) -{ - psci_power_state_t state_info; - - zeromem(&state_info, sizeof(state_info)); - psci_get_target_local_pwr_states(PLAT_MAX_PWR_LVL, &state_info); - - return psci_find_target_suspend_lvl(&state_info); -} - -/******************************************************************************* - * PSCI Compatibility helper function to return target affinity level requested - * for the CPU_SUSPEND. This function assumes affinity levels correspond to - * power domain levels on the platform. - ******************************************************************************/ -int psci_get_suspend_afflvl(void) -{ - return psci_get_suspend_pwrlvl(); -} - -#endif - /******************************************************************************* * Initiate power down sequence, by calling power down operations registered for * this CPU. |