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

Skip to content
Commit e3433514 authored by Lorenzo Pieralisi's avatar Lorenzo Pieralisi Committed by Abhimanyu Kapur
Browse files

arm64: kernel: implement fpsimd CPU PM notifier



When a CPU enters a low power state, its FP register content is lost.
This patch adds a notifier to save the FP context on CPU shutdown
and restore it on CPU resume. The context is saved and restored only
if the suspending thread is not a kernel thread, mirroring the current
context switch behaviour.

Change-Id: I7f340bd7f9747a3f1e8af043a30f5c3d8ec7d98f
Signed-off-by: default avatarLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Git-commit: fb1ab1ab3889fc23ed90e452502662311ebdf229
Git-Repo: git://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/


[abhimany@codeaurora.org: resolve minor merge conflict]
Signed-off-by: default avatarAbhimanyu Kapur <abhimany@codeaurora.org>
parent 2cc3f70d
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