Skip to content

Commit f186a84

Browse files
Julien Grallwilldeacon
authored andcommitted
arm64/fpsimd: Update documentation of do_sve_acc
fpsimd_restore_current_state() enables and disables the SVE access trap based on TIF_SVE, not task_fpsimd_load(). Update the documentation of do_sve_acc to reflect this behavior. Signed-off-by: Julien Grall <julien.grall@arm.com> Signed-off-by: Mark Brown <broonie@kernel.org> Reviewed-by: Dave Martin <Dave.Martin@arm.com> Link: https://lore.kernel.org/r/20200828181155.17745-2-broonie@kernel.org Signed-off-by: Will Deacon <will@kernel.org>
1 parent f75aef3 commit f186a84

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/arm64/kernel/fpsimd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ void fpsimd_release_task(struct task_struct *dead_task)
928928
* the SVE access trap will be disabled the next time this task
929929
* reaches ret_to_user.
930930
*
931-
* TIF_SVE should be clear on entry: otherwise, task_fpsimd_load()
931+
* TIF_SVE should be clear on entry: otherwise, fpsimd_restore_current_state()
932932
* would have disabled the SVE access trap for userspace during
933933
* ret_to_user, making an SVE access trap impossible in that case.
934934
*/

0 commit comments

Comments
 (0)