ARM: at91/pm: move the copying the sram function to the sram initialization phase
authorWenyou Yang <wenyou.yang@atmel.com>
Mon, 9 Mar 2015 03:49:01 +0000 (11:49 +0800)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Fri, 13 Mar 2015 12:34:22 +0000 (13:34 +0100)
commitd94e688cae5661b18164fb7366d1696a1921baba
tree3b2bb5f408c603fa0142e8af2c8160ac69fb4702
parent0ab285c2fafe90dfd665b29057666c3953b2592c
ARM: at91/pm: move the copying the sram function to the sram initialization phase

To decrease the suspend time, move copying the sram function to the sram
initialization phase, instead of every time go to suspend.

In the meanwhile, substitute fncpy() for memcpy().

If there is no sram allocated for PM, the PM is not supported.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Tested-by: Sylvain Rochet <sylvain.rochet@finsecur.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
arch/arm/mach-at91/pm.c