]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: zynq: Remove hotplug.c
authorSoren Brinkmann <soren.brinkmann@xilinx.com>
Tue, 2 Sep 2014 21:19:13 +0000 (14:19 -0700)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 16 Sep 2014 10:55:10 +0000 (12:55 +0200)
The hotplug code contains only a single function, which is an SMP
function. Move that to platsmp.c where all other SMP runctions reside.
That allows removing hotplug.c and declaring the cpu_die function
static.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/mach-zynq/Makefile
arch/arm/mach-zynq/common.h
arch/arm/mach-zynq/hotplug.c
arch/arm/mach-zynq/platsmp.c

index 820dff6e1eba59e71a7dc03beb286cf0973eda7c..c85fb3f7d5cdf55d683eea83ca7a4a0e15125fb5 100644 (file)
@@ -6,5 +6,4 @@
 obj-y                          := common.o slcr.o pm.o
 CFLAGS_REMOVE_hotplug.o                =-march=armv6k
 CFLAGS_hotplug.o               =-Wa,-march=armv7-a -mcpu=cortex-a9
-obj-$(CONFIG_HOTPLUG_CPU)      += hotplug.o
 obj-$(CONFIG_SMP)              += headsmp.o platsmp.o
index 24d6340d3fb6de4b415d9ee7c55e2c5bf019269b..2bc71273c73c6c324b4c8d869389d8bd535a3a64 100644 (file)
@@ -39,9 +39,6 @@ extern struct smp_operations zynq_smp_ops __initdata;
 
 extern void __iomem *zynq_scu_base;
 
-/* Hotplug */
-extern void zynq_platform_cpu_die(unsigned int cpu);
-
 void zynq_pm_late_init(void);
 
 static inline void zynq_core_pm_init(void)
index fe44a05677e214d306b61cf145714ec8a8184b36..b685c89f11e48871e7cc803b2d749d0fb114001a 100644 (file)
  */
 #include <asm/proc-fns.h>
 
-/*
- * platform-specific code to shutdown a CPU
- *
- * Called with IRQs disabled
- */
-void zynq_platform_cpu_die(unsigned int cpu)
-{
-       zynq_slcr_cpu_state_write(cpu, true);
-
-       /*
-        * there is no power-control hardware on this platform, so all
-        * we can do is put the core into WFI; this is safe as the calling
-        * code will have already disabled interrupts
-        */
-       for (;;)
-               cpu_do_idle();
-}
index 06415eeba7e6fb118cd1d868a5e45ad10af0dcba..f722b5a83a458050086fda42d8821985ec61f189 100644 (file)
@@ -136,6 +136,24 @@ static int zynq_cpu_kill(unsigned cpu)
        zynq_slcr_cpu_stop(cpu);
        return 1;
 }
+
+/*
+ * platform-specific code to shutdown a CPU
+ *
+ * Called with IRQs disabled
+ */
+static void zynq_platform_cpu_die(unsigned int cpu)
+{
+       zynq_slcr_cpu_state_write(cpu, true);
+
+       /*
+        * there is no power-control hardware on this platform, so all
+        * we can do is put the core into WFI; this is safe as the calling
+        * code will have already disabled interrupts
+        */
+       for (;;)
+               cpu_do_idle();
+}
 #endif
 
 struct smp_operations zynq_smp_ops __initdata = {