socfpga: hotplug: put cpu1 in wfi
authorAlan Tull <atull@opensource.altera.com>
Tue, 14 Oct 2014 19:33:38 +0000 (19:33 +0000)
committerArnd Bergmann <arnd@arndb.de>
Thu, 20 Nov 2014 16:00:32 +0000 (17:00 +0100)
commitd686ce4204c5dc131396f1fca81beebc46cb8cdb
treed87afcc6c3c644aa6d655bf14e384d2ac2f11b19
parent6bea7562bb0495a43c51ca38cf9029e3168f5d90
socfpga: hotplug: put cpu1 in wfi

Use WFI when putting CPU1 to sleep.  Don't hold CPU1 in reset
since that results in increased power consumption.

Reset CPU1 briefly during CPU1 bootup.

This has been tested for hotplug and suspend/resume and results
in no increased power consumption.

Signed-off-by: Alan Tull <atull@opensource.altera.com>
Acked-by: Pavel Machek <pavel@denx.de>
Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-socfpga/core.h
arch/arm/mach-socfpga/platsmp.c