diff options
| author | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-01-13 15:00:22 +0000 | 
|---|---|---|
| committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-01-13 15:00:22 +0000 | 
| commit | 4de3a8e101150feaefa1139611a50ff37467f33e (patch) | |
| tree | daada742542518b02d7db7c5d32e715eaa5f166d /arch/arm/mach-omap2/omap-hotplug.c | |
| parent | 294064f58953f9964e5945424b09c51800330a83 (diff) | |
| parent | 099469502f62fbe0d7e4f0b83a2f22538367f734 (diff) | |
| download | olio-linux-3.10-4de3a8e101150feaefa1139611a50ff37467f33e.tar.xz olio-linux-3.10-4de3a8e101150feaefa1139611a50ff37467f33e.zip  | |
Merge branch 'master' into fixes
Diffstat (limited to 'arch/arm/mach-omap2/omap-hotplug.c')
| -rw-r--r-- | arch/arm/mach-omap2/omap-hotplug.c | 14 | 
1 files changed, 9 insertions, 5 deletions
diff --git a/arch/arm/mach-omap2/omap-hotplug.c b/arch/arm/mach-omap2/omap-hotplug.c index e5a1c3f40a8..adbe4d8c7ca 100644 --- a/arch/arm/mach-omap2/omap-hotplug.c +++ b/arch/arm/mach-omap2/omap-hotplug.c @@ -22,6 +22,8 @@  #include "common.h" +#include "powerdomain.h" +  int platform_cpu_kill(unsigned int cpu)  {  	return 1; @@ -33,6 +35,8 @@ int platform_cpu_kill(unsigned int cpu)   */  void platform_cpu_die(unsigned int cpu)  { +	unsigned int this_cpu; +  	flush_cache_all();  	dsb(); @@ -40,15 +44,15 @@ void platform_cpu_die(unsigned int cpu)  	 * we're ready for shutdown now, so do it  	 */  	if (omap_modify_auxcoreboot0(0x0, 0x200) != 0x0) -		printk(KERN_CRIT "Secure clear status failed\n"); +		pr_err("Secure clear status failed\n");  	for (;;) {  		/* -		 * Execute WFI +		 * Enter into low power state  		 */ -		do_wfi(); - -		if (omap_read_auxcoreboot0() == cpu) { +		omap4_hotplug_cpu(cpu, PWRDM_POWER_OFF); +		this_cpu = smp_processor_id(); +		if (omap_read_auxcoreboot0() == this_cpu) {  			/*  			 * OK, proper wakeup, we're done  			 */  |