summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-msm/hotplug.c
diff options
context:
space:
mode:
authorKumar Gala <galak@codeaurora.org>2014-01-31 13:48:29 -0600
committerKumar Gala <galak@codeaurora.org>2014-02-04 16:25:11 -0600
commit6a032dba7d2329084dca41cc8d82c0cda13103ef (patch)
tree7b6fbd5909af94bd44d2fbb526f4bfd050e3380a /arch/arm/mach-msm/hotplug.c
parent52b52b4681df8bad450692cf3fa8a61ca1e1599a (diff)
downloadlinux-6a032dba7d2329084dca41cc8d82c0cda13103ef.tar.gz
linux-6a032dba7d2329084dca41cc8d82c0cda13103ef.tar.bz2
linux-6a032dba7d2329084dca41cc8d82c0cda13103ef.zip
ARM: msm: kill off hotplug.c
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>
Diffstat (limited to 'arch/arm/mach-msm/hotplug.c')
-rw-r--r--arch/arm/mach-msm/hotplug.c51
1 files changed, 0 insertions, 51 deletions
diff --git a/arch/arm/mach-msm/hotplug.c b/arch/arm/mach-msm/hotplug.c
deleted file mode 100644
index cea80fc6e48e..000000000000
--- a/arch/arm/mach-msm/hotplug.c
+++ /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();
-}