rockchip: smccc: psci_system_suspend() effects by CONFIG_ARM_CPU_SUSPEND

Change-Id: I6ecc1c4db8232782af369e8e29b78a2c0cb13783
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
Joseph Chen 2019-05-17 12:00:52 +08:00
parent 3415d4ebcd
commit 164b2a3361
2 changed files with 4 additions and 0 deletions

View File

@ -137,6 +137,7 @@ struct arm_smccc_res sip_smc_get_sip_version(void);
*/
int psci_cpu_on(unsigned long cpuid, unsigned long entry_point);
#ifdef CONFIG_ARM_CPU_SUSPEND
/*
* psci_system_suspend() - Standard ARM PSCI system suspend call.
*
@ -145,5 +146,6 @@ int psci_cpu_on(unsigned long cpuid, unsigned long entry_point);
* @return 0 on success, otherwise failed.
*/
int psci_system_suspend(unsigned long unused);
#endif
#endif

View File

@ -41,6 +41,7 @@ int psci_cpu_on(unsigned long cpuid, unsigned long entry_point)
return res.a0;
}
#ifdef CONFIG_ARM_CPU_SUSPEND
int psci_system_suspend(unsigned long unused)
{
struct arm_smccc_res res;
@ -49,6 +50,7 @@ int psci_system_suspend(unsigned long unused)
virt_to_phys(cpu_resume), 0, 0);
return res.a0;
}
#endif
int sip_smc_set_suspend_mode(unsigned long ctrl,
unsigned long config1,