]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
ARM: msm: kill off hotplug.c
authorKumar Gala <galak@codeaurora.org>
Fri, 31 Jan 2014 19:48:29 +0000 (13:48 -0600)
committerKumar Gala <galak@codeaurora.org>
Tue, 4 Feb 2014 22:25:11 +0000 (16:25 -0600)
Right now hotplug.c only really implements msm_cpu_die as a wfi.  Just
move that implementation into platsmp.c.  At the same time we use the
existing wfi() instead of inline asm.

Signed-off-by: Kumar Gala <galak@codeaurora.org>
arch/arm/mach-msm/Makefile
arch/arm/mach-msm/common.h
arch/arm/mach-msm/hotplug.c [deleted file]
arch/arm/mach-msm/platsmp.c

index 721f27f50d96877863142a2943d52dcae52cd69b..8327f603df4ce063976f123e321ddb3f1cadc003 100644 (file)
@@ -18,7 +18,6 @@ obj-$(CONFIG_MSM_SCM) += scm.o scm-boot.o
 
 CFLAGS_scm.o :=$(call as-instr,.arch_extension sec,-DREQUIRES_SEC=1)
 
-obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o
 obj-$(CONFIG_SMP) += platsmp.o
 
 obj-$(CONFIG_MACH_TROUT) += board-trout.o board-trout-gpio.o board-trout-mmc.o devices-msm7x00.o
index 33c7725adae2ffd5f885011c2bcd549030c159fd..0a4899b7d85c8b55d73a31f89df35abd575d1351 100644 (file)
@@ -24,7 +24,6 @@ extern void __iomem *__msm_ioremap_caller(phys_addr_t phys_addr, size_t size,
                                          unsigned int mtype, void *caller);
 
 extern struct smp_operations msm_smp_ops;
-extern void msm_cpu_die(unsigned int cpu);
 
 struct msm_mmc_platform_data;
 
diff --git a/arch/arm/mach-msm/hotplug.c b/arch/arm/mach-msm/hotplug.c
deleted file mode 100644 (file)
index cea80fc..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- *  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 <linux/kernel.h>
-#include <linux/errno.h>
-#include <linux/smp.h>
-
-#include <asm/smp_plat.h>
-
-#include "common.h"
-
-static inline void cpu_enter_lowpower(void)
-{
-}
-
-static inline void cpu_leave_lowpower(void)
-{
-}
-
-static inline void platform_do_lowpower(unsigned int cpu)
-{
-       asm("wfi"
-           :
-           :
-           : "memory", "cc");
-}
-
-/*
- * platform-specific code to shutdown a CPU
- *
- * Called with IRQs disabled
- */
-void __ref msm_cpu_die(unsigned int cpu)
-{
-       /*
-        * we're ready for shutdown now, so do it
-        */
-       cpu_enter_lowpower();
-       platform_do_lowpower(cpu);
-
-       /*
-        * bring this CPU back into the world of cache
-        * coherency, and then restore interrupts
-        */
-       cpu_leave_lowpower();
-}
index 3721b31ef6ae7f46b65a0965886a72afb6a7c71e..251a91eb102ac9ec4248d13d9a2e05af86881ce8 100644 (file)
@@ -29,6 +29,13 @@ extern void secondary_startup(void);
 
 static DEFINE_SPINLOCK(boot_lock);
 
+#ifdef CONFIG_HOTPLUG_CPU
+static void __ref msm_cpu_die(unsigned int cpu)
+{
+       wfi();
+}
+#endif
+
 static inline int get_core_count(void)
 {
        /* 1 + the PART[1:0] field of MIDR */