Loading arch/arm/kernel/psci_smp.c +9 −0 Original line number Diff line number Diff line Loading @@ -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 = { Loading Loading @@ -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 Loading Loading
arch/arm/kernel/psci_smp.c +9 −0 Original line number Diff line number Diff line Loading @@ -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 = { Loading Loading @@ -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 Loading