arm64: kernel: implement fpsimd CPU PM notifier
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Fri, 19 Jul 2013 16:48:08 +0000 (17:48 +0100)
committerMark Brown <broonie@linaro.org>
Thu, 19 Jun 2014 11:33:56 +0000 (12:33 +0100)
commitd7ee1fd79f9677e5ab75215aa696e6ac50352ca9
treead39e0904fb6127f31ef9e66327025bae2a43234
parent2f36c2ef1393d17dd2dde3458a55f804e0c10eac
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>
(cherry picked from commit fb1ab1ab3889fc23ed90e452502662311ebdf229)
Signed-off-by: Mark Brown <broonie@linaro.org>
arch/arm64/kernel/fpsimd.c