aboutsummaryrefslogtreecommitdiff
path: root/arch/arm64/kernel/psci.c
diff options
context:
space:
mode:
authorGravatar Lorenzo Pieralisi <Lorenzo.Pieralisi@arm.com> 2014-07-17 18:19:18 +0100
committerGravatar Catalin Marinas <catalin.marinas@arm.com> 2014-07-18 15:23:25 +0100
commit756854d9b99a735f86bc3b86df5c19be12e8746e (patch)
tree58adf39e1951db36975cedd8704ae05bce7b315d /arch/arm64/kernel/psci.c
parentarm64: fpsimd: avoid restoring fpcr if the contents haven't changed (diff)
downloadlinux-756854d9b99a735f86bc3b86df5c19be12e8746e.tar.gz
linux-756854d9b99a735f86bc3b86df5c19be12e8746e.tar.bz2
linux-756854d9b99a735f86bc3b86df5c19be12e8746e.zip
arm64: kernel: enable PSCI cpu operations on UP systems
PSCI CPU operations have to be enabled on UP kernels so that calls like eg cpu_suspend can be made functional on UP too. This patch reworks the PSCI CPU operations so that they can be enabled on UP systems. Acked-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/kernel/psci.c')
-rw-r--r--arch/arm64/kernel/psci.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm64/kernel/psci.c b/arch/arm64/kernel/psci.c
index 9e9798f91172..a623c44a6bc4 100644
--- a/arch/arm64/kernel/psci.c
+++ b/arch/arm64/kernel/psci.c
@@ -434,9 +434,11 @@ static int cpu_psci_cpu_kill(unsigned int cpu)
return 0;
}
#endif
+#endif
const struct cpu_operations cpu_psci_ops = {
.name = "psci",
+#ifdef CONFIG_SMP
.cpu_init = cpu_psci_cpu_init,
.cpu_prepare = cpu_psci_cpu_prepare,
.cpu_boot = cpu_psci_cpu_boot,
@@ -445,6 +447,6 @@ const struct cpu_operations cpu_psci_ops = {
.cpu_die = cpu_psci_cpu_die,
.cpu_kill = cpu_psci_cpu_kill,
#endif
+#endif
};
-#endif