Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 349096
b: refs/heads/master
c: 8375766
h: refs/heads/master
v: v3
  • Loading branch information
Shawn Guo committed Jan 14, 2013
1 parent 5008b19 commit 41c0e7f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: afc10301f70350b490ca518ceb793928854b5453
refs/heads/master: 837576642167d701f983e4def0d3936b514a28ae
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-imx/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ extern int imx6q_set_lpm(enum mxc_cpu_pwr_mode mode);
extern void imx6q_clock_map_io(void);

extern void imx_cpu_die(unsigned int cpu);
extern int imx_cpu_kill(unsigned int cpu);

#ifdef CONFIG_PM
extern void imx6q_pm_init(void);
Expand Down
10 changes: 6 additions & 4 deletions trunk/arch/arm/mach-imx/hotplug.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@ static inline void cpu_enter_lowpower(void)
void imx_cpu_die(unsigned int cpu)
{
cpu_enter_lowpower();
imx_enable_cpu(cpu, false);
cpu_do_idle();
}

/* spin here until hardware takes it down */
while (1)
;
int imx_cpu_kill(unsigned int cpu)
{
imx_enable_cpu(cpu, false);
return 1;
}
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-imx/platsmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,6 @@ struct smp_operations imx_smp_ops __initdata = {
.smp_boot_secondary = imx_boot_secondary,
#ifdef CONFIG_HOTPLUG_CPU
.cpu_die = imx_cpu_die,
.cpu_kill = imx_cpu_kill,
#endif
};

0 comments on commit 41c0e7f

Please sign in to comment.