diff options
author | Achin Gupta <achin.gupta@arm.com> | 2013-12-02 16:23:12 +0000 |
---|---|---|
committer | Dan Handley <dan.handley@arm.com> | 2013-12-05 12:28:50 +0000 |
commit | 3140a9e5c7d524eb1ea1648ae7c26e61fe7d740c (patch) | |
tree | 185f44232a24972a0e0f2ff7c560c691161d4582 /common/psci/psci_afflvl_suspend.c | |
parent | 2d94d4a0bea2c2419efda7fdd821542f6c0bff4b (diff) |
psci: rework cpu_off assertion and minor cleanups
This patch:
1. removes a duplicate assertion to check that the only error
condition that can be returned while turning a cpu off is
PSCI_E_DENIED. Having this assertion after calling
psci_afflvl_off() is sufficient.
2. corrects some incorrect usage of 'its' vs 'it is'
3. removes some unwanted white spaces
Change-Id: Icf014e269b54f5be5ce0b9fbe6b41258e4ebf403
Diffstat (limited to 'common/psci/psci_afflvl_suspend.c')
-rw-r--r-- | common/psci/psci_afflvl_suspend.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/common/psci/psci_afflvl_suspend.c b/common/psci/psci_afflvl_suspend.c index 05b0aad0..810075b9 100644 --- a/common/psci/psci_afflvl_suspend.c +++ b/common/psci/psci_afflvl_suspend.c @@ -153,7 +153,7 @@ static int psci_afflvl1_suspend(unsigned long mpidr, dcsw_op_all(DCCISW); /* - * Plat. Management. Allow the platform to do it's cluster + * Plat. Management. Allow the platform to do its cluster * specific bookeeping e.g. turn off interconnect coherency, * program the power controller etc. */ @@ -166,7 +166,6 @@ static int psci_afflvl1_suspend(unsigned long mpidr, * platform handler prototype the same. */ psci_entrypoint = (unsigned long) psci_aff_suspend_finish_entry; - rc = psci_plat_pm_ops->affinst_suspend(mpidr, psci_entrypoint, ns_entrypoint, @@ -198,7 +197,7 @@ static int psci_afflvl2_suspend(unsigned long mpidr, plat_state = psci_get_aff_phys_state(system_node); /* - * Plat. Management : Allow the platform to do it's bookeeping + * Plat. Management : Allow the platform to do its bookeeping * at this affinity level */ if (psci_plat_pm_ops->affinst_suspend) { @@ -210,7 +209,6 @@ static int psci_afflvl2_suspend(unsigned long mpidr, * platform handler prototype the same. */ psci_entrypoint = (unsigned long) psci_aff_suspend_finish_entry; - rc = psci_plat_pm_ops->affinst_suspend(mpidr, psci_entrypoint, ns_entrypoint, @@ -387,7 +385,7 @@ static unsigned int psci_afflvl0_suspend_finish(unsigned long mpidr, /* * Generic management: Now we just need to retrieve the * information that we had stashed away during the suspend - * call to set this cpu on it's way. + * call to set this cpu on its way. */ psci_get_ns_entry_info(index); |