Skip to content

Commit

Permalink
ARM: msm: kill off hotplug.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kumar Gala committed Feb 4, 2014
1 parent 52b52b4 commit 6a032db
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 53 deletions.
1 change: 0 additions & 1 deletion arch/arm/mach-msm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion arch/arm/mach-msm/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
51 changes: 0 additions & 51 deletions arch/arm/mach-msm/hotplug.c

This file was deleted.

7 changes: 7 additions & 0 deletions arch/arm/mach-msm/platsmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 6a032db

Please sign in to comment.