mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
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:
parent
c392721b7b
commit
26ac24e3bb
1 changed files with 6 additions and 0 deletions
|
|
@ -105,6 +105,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)
|
||||
|
|
@ -119,5 +124,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
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue