Miscellaneous PSCI code cleanups
This patch implements the following cleanups in PSCI generic code:

1. It reworks the affinity level specific handlers in the PSCI implementation
   such that.

   a. Usage of the 'rc' local variable is restricted to only where it is
      absolutely needed

   b. 'plat_state' local variable is defined only when a direct invocation of
      plat_get_phys_state() does not suffice.

   c. If a platform handler is not registered then the level specific handler
      returns early.

2. It limits the use of the mpidr_aff_map_nodes_t typedef to declaration of
   arrays of the type instead of using it in function prototypes as well.

3. It removes dangling declarations of __psci_cpu_off() and
   __psci_cpu_suspend(). The definitions of these functions were removed in
   earlier patches.

Change-Id: I51e851967c148be9c2eeda3a3c41878f7b4d6978
1 parent 7d2ccfd commit a4a8eaeb36f7a023b057f49e0f43f1d0134fd7f0
@Achin Gupta Achin Gupta authored on 27 Jul 2014
Soby Mathew committed on 19 Aug 2014
Showing 8 changed files
View
include/bl31/services/psci.h
View
services/std_svc/psci/psci_afflvl_off.c
View
services/std_svc/psci/psci_afflvl_on.c
View
services/std_svc/psci/psci_afflvl_suspend.c
View
services/std_svc/psci/psci_common.c
View
services/std_svc/psci/psci_entry.S
View
services/std_svc/psci/psci_private.h
View
services/std_svc/psci/psci_setup.c