diff options
Diffstat (limited to 'services/std_svc/psci/psci_afflvl_off.c')
-rw-r--r-- | services/std_svc/psci/psci_afflvl_off.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/services/std_svc/psci/psci_afflvl_off.c b/services/std_svc/psci/psci_afflvl_off.c index 21a4d1a..30f2bd1 100644 --- a/services/std_svc/psci/psci_afflvl_off.c +++ b/services/std_svc/psci/psci_afflvl_off.c @@ -42,8 +42,8 @@ typedef int (*afflvl_off_handler_t)(unsigned long, aff_map_node_t *); ******************************************************************************/ static int psci_afflvl0_off(unsigned long mpidr, aff_map_node_t *cpu_node) { - unsigned int index, plat_state; - int rc = PSCI_E_SUCCESS; + unsigned int plat_state; + int rc; unsigned long sctlr; assert(cpu_node->level == MPIDR_AFFLVL0); @@ -67,9 +67,6 @@ static int psci_afflvl0_off(unsigned long mpidr, aff_map_node_t *cpu_node) return rc; } - index = cpu_node->data; - memset(&psci_ns_entry_info[index], 0, sizeof(psci_ns_entry_info[index])); - /* * Arch. management. Perform the necessary steps to flush all * cpu caches. @@ -96,6 +93,7 @@ static int psci_afflvl0_off(unsigned long mpidr, aff_map_node_t *cpu_node) * Plat. management: Perform platform specific actions to turn this * cpu off e.g. exit cpu coherency, program the power controller etc. */ + rc = PSCI_E_SUCCESS; if (psci_plat_pm_ops->affinst_off) { /* Get the current physical state of this cpu */ |