ANDROID: arm64: suspend: Restore the UAO state
authorAmit Pundir <amit.pundir@linaro.org>
Thu, 4 May 2017 19:45:33 +0000 (01:15 +0530)
committerAmit Pundir <amit.pundir@linaro.org>
Thu, 25 May 2017 11:07:25 +0000 (16:37 +0530)
commitca85cbc7c65608c5a1bb2e5406494dcc2dfa900f
tree03be5bc0f7393706cae9af9c791b2950a30302f6
parenta94afe585eb8c7c0ecd0f857d53584d840b1843b
ANDROID: arm64: suspend: Restore the UAO state

Upstream commit d08544127d9f ("arm64: suspend: Reconfigure PSTATE
after resume from idle") when cherry-picked on LTS linux-4.4.y
removed UAO reset code because UAO is not supported in linux-4.4.y.

But common/android-4.4 has UAO support, added in Change-Id:
I1a6a74a1f33b92d54368bd99387b55cf62930903 ("UPSTREAM: arm64: kernel:
Add support for User Access Override").

This patch pick up the UAO specific changes of upstream commit
dropped in LTS cherry-pick.

Fixes: LTS commit 71710cd35a55 ("arm64: suspend: Reconfigure PSTATE after resume from idle")
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
arch/arm64/include/asm/exec.h
arch/arm64/kernel/process.c
arch/arm64/kernel/suspend.c