diff options
author | Kumar Gala <galak@codeaurora.org> | 2014-01-31 13:48:29 -0600 |
---|---|---|
committer | Kumar Gala <galak@codeaurora.org> | 2014-02-04 16:25:11 -0600 |
commit | 6a032dba7d2329084dca41cc8d82c0cda13103ef (patch) | |
tree | 7b6fbd5909af94bd44d2fbb526f4bfd050e3380a /arch/arm/mach-msm/platsmp.c | |
parent | 52b52b4681df8bad450692cf3fa8a61ca1e1599a (diff) | |
download | linux-6a032dba7d2329084dca41cc8d82c0cda13103ef.tar.bz2 |
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/platsmp.c')
-rw-r--r-- | arch/arm/mach-msm/platsmp.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-msm/platsmp.c b/arch/arm/mach-msm/platsmp.c index 3721b31ef6ae..251a91eb102a 100644 --- a/arch/arm/mach-msm/platsmp.c +++ b/arch/arm/mach-msm/platsmp.c @@ -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 */ |