Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1ccde330 authored by Teng Fei Fan's avatar Teng Fei Fan
Browse files

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: default avatarTeng Fei Fan <tengfei@codeaurora.org>
parent 5ef504ce
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -112,6 +112,12 @@ int psci_cpu_kill(unsigned int cpu)
	return 0;
}

static bool psci_cpu_can_disable(unsigned int cpu)
{
	/*Hotplug of any CPU is supported*/
	return true;
}

#endif

bool __init psci_smp_available(void)
@@ -126,5 +132,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
};