ODROID-C3/N2: arch/arm64: fix suspend/resume failure

This patch is to fix the suspend/resume failure even after reverting
the commit below:
    [235aeafb93] arm64: Save and restore OSDLR_EL1 across suspend/resume

This change is discovered in the merging commit 'v4.9.174' and 'v4.9.180'.

Change-Id: Iec21cd95661582117974e76fa5117b5f686cd2e2
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
This commit is contained in:
Dongjin Kim
2019-06-26 17:41:18 +09:00
parent 082fa6da26
commit b997e585bd

View File

@@ -70,11 +70,14 @@ ENTRY(cpu_do_suspend)
mrs x8, mdscr_el1
mrs x9, oslsr_el1
mrs x10, sctlr_el1
mrs x11, tpidr_el1
mrs x12, sp_el0
stp x2, x3, [x0]
stp x4, xzr, [x0, #16]
stp x5, x6, [x0, #32]
stp x7, x8, [x0, #48]
stp x9, x10, [x0, #64]
stp x11, x12, [x0, #80]
ret
ENDPROC(cpu_do_suspend)