diff options
author | Leo Yan <leoy@marvell.com> | 2014-09-01 03:09:51 (GMT) |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2014-09-01 11:55:21 (GMT) |
commit | 7c68a9cc040216c902f93f9c80305df55d9beff7 (patch) | |
tree | ecdb72890cbf45f840a2ea9e2f2b188133ca16db /Documentation/cdrom | |
parent | 3168a743461ecf86adf3e7dcfcd79271828fb263 (diff) | |
download | linux-7c68a9cc040216c902f93f9c80305df55d9beff7.tar.xz |
arm64: fix bug for reloading FPSIMD state after cpu power off
Now arm64 defers reloading FPSIMD state, but this optimization also
introduces the bug after cpu resume back from low power mode.
The reason is after the cpu has been powered off, s/w need set the
cpu's fpsimd_last_state to NULL so that it will force to reload
FPSIMD state for the thread, otherwise there has the chance to meet
the condition for both the task's fpsimd_state.cpu field contains the
id of the current cpu, and the cpu's fpsimd_last_state per-cpu variable
points to the task's fpsimd_state, so finally kernel will skip to reload
the context during it return back to userland.
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Leo Yan <leoy@marvell.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'Documentation/cdrom')
0 files changed, 0 insertions, 0 deletions