arm64: kernel: implement fpsimd CPU PM notifier
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Fri, 19 Jul 2013 16:48:08 +0000 (17:48 +0100)
committerAlex Shi <alex.shi@linaro.org>
Mon, 10 Mar 2014 05:38:36 +0000 (13:38 +0800)
commit82c76f166d477c49c22d05688385041b9a8a74de
tree817dae2329a7ebc86f4fe96287d6ab12a63b79ad
parentffc58bc556717fa470d6e54a2a604ee0d7063278
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.

Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Conflicts:
arch/arm64/kernel/fpsimd.c
arch/arm64/kernel/fpsimd.c