Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 72745c4a authored by Mahesh Sivasubramanian's avatar Mahesh Sivasubramanian
Browse files

msm: pm-8x60: Call cpu_init after exiting power collapse



cpu_init() initializes the per-cpu stacks after a reset. The function
has to be called before any per-cpu variable can be called. To ensure
per cpu stacks are restored properly, call cpu_init() right after
exiting power collapsed mode.

With 3.10 kernel, the percpu offset is stored in CP15(TPIDRPRW). The
CP15 register gets reset during power collapse and has to be restored
before any access to per cpu variables can be accessed. Calling
cpu_init() ensures that this registers gets restored correctly.

Change-Id: I5cf7cdad17cc8446acb86916cfc50f0f3077a8a5
Signed-off-by: default avatarMahesh Sivasubramanian <msivasub@codeaurora.org>
parent 269c4baa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment