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

Commit 2f946814 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "arm: psci: Add cpu_disable callback for smp ops"

parents 2a12f4d2 0504581b
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -56,6 +56,14 @@ static int psci_boot_secondary(unsigned int cpu, struct task_struct *idle)
}

#ifdef CONFIG_HOTPLUG_CPU
static int psci_cpu_disable(unsigned int cpu)
{
	/* Fail early if we don't have CPU_OFF support */
	if (!psci_ops.cpu_off)
		return -EOPNOTSUPP;
	return 0;
}

void __ref psci_cpu_die(unsigned int cpu)
{
       const struct psci_power_state ps = {
@@ -109,6 +117,7 @@ bool __init psci_smp_available(void)
struct smp_operations __initdata psci_smp_ops = {
	.smp_boot_secondary	= psci_boot_secondary,
#ifdef CONFIG_HOTPLUG_CPU
	.cpu_disable		= psci_cpu_disable,
	.cpu_die		= psci_cpu_die,
	.cpu_kill		= psci_cpu_kill,
#endif