]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1aec5bfff8620b541ac084d6bfd032a7d39322d4
tree3b2bb5f408c603fa0142e8af2c8160ac69fb4702
parentf8078fbb670caf0716604ed74bb9fe01864901f3
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