projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a37ff3
)
arm: zynq: Add support for zynq_cpu_kill function
author
Michal Simek
<michal.simek@xilinx.com>
Thu, 31 Oct 2013 16:10:16 +0000
(09:10 -0700)
committer
Michal Simek
<michal.simek@xilinx.com>
Tue, 10 Dec 2013 13:17:56 +0000
(14:17 +0100)
Use simple hook to slcr to stop cpu.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/mach-zynq/platsmp.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-zynq/platsmp.c
b/arch/arm/mach-zynq/platsmp.c
index f6e62c4a0afcb576668a95c23c9e1efe2d96ef7e..8021499e7b704a6c18d5fb9783c6189484dc0b6b 100644
(file)
--- a/
arch/arm/mach-zynq/platsmp.c
+++ b/
arch/arm/mach-zynq/platsmp.c
@@
-121,11
+121,20
@@
static void __init zynq_smp_prepare_cpus(unsigned int max_cpus)
scu_enable(zynq_scu_base);
}
+#ifdef CONFIG_HOTPLUG_CPU
+static int zynq_cpu_kill(unsigned cpu)
+{
+ zynq_slcr_cpu_stop(cpu);
+ return 1;
+}
+#endif
+
struct smp_operations zynq_smp_ops __initdata = {
.smp_init_cpus = zynq_smp_init_cpus,
.smp_prepare_cpus = zynq_smp_prepare_cpus,
.smp_boot_secondary = zynq_boot_secondary,
#ifdef CONFIG_HOTPLUG_CPU
.cpu_die = zynq_platform_cpu_die,
+ .cpu_kill = zynq_cpu_kill,
#endif
};