arm: psci: add psci_cpu_can_disable() function

Some devices which support disable cpu0 can not disable cpu0,
so add psci_cpu_can_disable() function to make all cpus can
disable.

Change-Id: Iaed4129abfc1283c6371bc11bbe5ae4e66317280
Signed-off-by: Teng Fei Fan <tengfei@codeaurora.org>
This commit is contained in:
Teng Fei Fan 2018-05-25 09:03:50 +08:00 committed by Gerrit - the friendly Code Review server
parent 2a98f2349d
commit 21536e6821

View File

@ -112,6 +112,11 @@ int psci_cpu_kill(unsigned int cpu)
return 0;
}
bool psci_cpu_can_disable(unsigned int cpu)
{
return true;
}
#endif
bool __init psci_smp_available(void)
@ -126,5 +131,6 @@ const struct smp_operations psci_smp_ops __initconst = {
.cpu_disable = psci_cpu_disable,
.cpu_die = psci_cpu_die,
.cpu_kill = psci_cpu_kill,
.cpu_can_disable = psci_cpu_can_disable,
#endif
};