plat_state);
}
- /*
- * The only error cpu_off can return is E_DENIED. So check if that's
- * indeed the case. The caller will simply 'eret' in case of an error.
- */
- if (rc != PSCI_E_SUCCESS)
- assert(rc == PSCI_E_DENIED);
-
return rc;
}
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.
*/
/* No arch. and generic bookeeping to do here currently */
/*
- * 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_off)
/*
* Generic management: Now we just need to retrieve the
* information that we had stashed away during the cpu_on
- * call to set this cpu on it's way. First get the index
+ * call to set this cpu on its way. First get the index
* for restoring the re-entry info
*/
index = cpu_node->data;
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.
*/
* 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,
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) {
* 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,
/*
* 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);
/*******************************************************************************
* This routine does the heavy lifting for psci_change_state(). It examines the
* state of each affinity instance at the next lower affinity level and decides
- * it's final state accordingly. If a lower affinity instance is ON then the
+ * its final state accordingly. If a lower affinity instance is ON then the
* higher affinity instance is ON. If all the lower affinity instances are OFF
* then the higher affinity instance is OFF. If atleast one lower affinity
* instance is SUSPENDED then the higher affinity instance is SUSPENDED. If only
unsigned long tempidr;
aff_map_node *lo_aff_node;
- /* Cannot calculate lowest affinity state. It's simply assigned */
+ /* Cannot calculate lowest affinity state. It is simply assigned */
assert(aff_node->level > MPIDR_AFFLVL0);
/*
/*
* At least one X-1 needs to be suspended for X to be suspended
- * but it's effectively on for the affinity_info call.
+ * but it is effectively on for the affinity_info call.
* SUSPEND > ON_PENDING > OFF.
*/
case PSCI_STATE_SUSPEND:
/*******************************************************************************
* An affinity level could be on, on_pending, suspended or off. These are the
- * logical states it can be in. Physically either it's off or on. When it's in
- * the state on_pending then it's about to be turned on. It's not possible to
+ * logical states it can be in. Physically either it is off or on. When it is in
+ * the state on_pending then it is about to be turned on. It is not possible to
* tell whether that's actually happenned or not. So we err on the side of
* caution & treat the affinity level as being turned off.
******************************************************************************/
*/
rc = psci_afflvl_off(mpidr, target_afflvl, MPIDR_AFFLVL0);
- if (rc != PSCI_E_SUCCESS) {
- assert(rc == PSCI_E_DENIED);
- }
+ /*
+ * The only error cpu_off can return is E_DENIED. So check if that's
+ * indeed the case.
+ */
+ assert (rc == PSCI_E_SUCCESS || rc == PSCI_E_DENIED);
return rc;
}
extern void runtime_svc_init(unsigned long mpidr);
#endif /*__ASSEMBLY__*/
-
-
#endif /* __RUNTIME_SVC_H__ */