]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
ARM: zynq: Remove hotplug.c
authorSoren Brinkmann <soren.brinkmann@xilinx.com>
Thu, 1 May 2014 16:36:37 +0000 (09:36 -0700)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 6 May 2014 11:00:23 +0000 (13:00 +0200)
Remove hotplug.c and move zynq_platform_cpu_die() to platsmp where all
other SMP ops are defined.
And make zynq_platform_cpu_die 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 [deleted file]
arch/arm/mach-zynq/platsmp.c

index 2c58c939fed55cddcd11087ec6e4843d1c29a2a5..30ae83df5ae574d6a048b2ec8e0b713151e3d841 100644 (file)
@@ -6,7 +6,6 @@
 obj-y                          := common.o slcr.o zynq_ocm.o
 
 obj-$(CONFIG_PCI_MSI)           += xaxipcie-msi.o
-obj-$(CONFIG_HOTPLUG_CPU)      += hotplug.o
 obj-$(CONFIG_SMP)              += headsmp.o platsmp.o
 ORIG_AFLAGS := $(KBUILD_AFLAGS)
 KBUILD_AFLAGS = $(subst -march=armv6k,,$(ORIG_AFLAGS))
index 1a5a534647e0c0be2c79875fd746ca932b449702..255ca6a315ef643034fc868970947be2ffb20a38 100644 (file)
@@ -42,9 +42,6 @@ extern void zynq_slcr_init_postload_fpga(void);
 extern void __iomem *zynq_slcr_base;
 extern void __iomem *zynq_scu_base;
 
-/* Hotplug */
-extern void zynq_platform_cpu_die(unsigned int cpu);
-
 #ifdef CONFIG_SUSPEND
 int zynq_pm_late_init(void);
 #else
diff --git a/arch/arm/mach-zynq/hotplug.c b/arch/arm/mach-zynq/hotplug.c
deleted file mode 100644 (file)
index 9addf0d..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Copyright (C) 2012-2013 Xilinx
- *
- * based on linux/arch/arm/mach-realview/hotplug.c
- *
- * Copyright (C) 2002 ARM Ltd.
- * All Rights Reserved
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- */
-#include <asm/cacheflush.h>
-#include "common.h"
-
-/*
- * platform-specific code to shutdown a CPU
- *
- * Called with IRQs disabled
- */
-void zynq_platform_cpu_die(unsigned int cpu)
-{
-       /*
-        * 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 abc82ef085c1617011fa3174bfaea2b7d8cb6244..a66024aca6251ee326d34a74020e4fb6371f20e6 100644 (file)
@@ -118,6 +118,22 @@ 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)
+{
+       /*
+        * 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 = {