@ -96,7 +96,7 @@ static void css_pwr_domain_on_finisher_common(
void css_pwr_domain_on_finish ( const psci_power_state_t * target_state )
void css_pwr_domain_on_finish ( const psci_power_state_t * target_state )
{
{
/* Assert that the system power domain need not be initialized */
/* Assert that the system power domain need not be initialized */
assert ( CSS_SYSTEM_PWR_STATE ( target_state ) = = ARM_LOCAL_STATE_RUN ) ;
assert ( css_system_pwr_state ( target_state ) = = ARM_LOCAL_STATE_RUN ) ;
/* Program the gic per-cpu distributor or re-distributor interface */
/* Program the gic per-cpu distributor or re-distributor interface */
plat_arm_gic_pcpu_init ( ) ;
plat_arm_gic_pcpu_init ( ) ;
@ -149,7 +149,7 @@ void css_pwr_domain_suspend(const psci_power_state_t *target_state)
css_power_down_common ( target_state ) ;
css_power_down_common ( target_state ) ;
/* Perform system domain state saving if issuing system suspend */
/* Perform system domain state saving if issuing system suspend */
if ( CSS_SYSTEM_PWR_STATE ( target_state ) = = ARM_LOCAL_STATE_OFF ) {
if ( css_system_pwr_state ( target_state ) = = ARM_LOCAL_STATE_OFF ) {
arm_system_pwr_domain_save ( ) ;
arm_system_pwr_domain_save ( ) ;
/* Power off the Redistributor after having saved its context */
/* Power off the Redistributor after having saved its context */
@ -174,7 +174,7 @@ void css_pwr_domain_suspend_finish(
return ;
return ;
/* Perform system domain restore if woken up from system suspend */
/* Perform system domain restore if woken up from system suspend */
if ( CSS_SYSTEM_PWR_STATE ( target_state ) = = ARM_LOCAL_STATE_OFF )
if ( css_system_pwr_state ( target_state ) = = ARM_LOCAL_STATE_OFF )
/*
/*
* At this point , the Distributor must be powered on to be ready
* At this point , the Distributor must be powered on to be ready
* to have its state restored . The Redistributor will be powered
* to have its state restored . The Redistributor will be powered