Skip to content

Commit 68a4c52

Browse files
Julien Grallwilldeacon
authored andcommitted
arm64/signal: Update the comment in preserve_sve_context
The SVE state is saved by fpsimd_signal_preserve_current_state() and not preserve_fpsimd_context(). Update the comment in preserve_sve_context to reflect the current 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-3-broonie@kernel.org Signed-off-by: Will Deacon <will@kernel.org>
1 parent f186a84 commit 68a4c52

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

arch/arm64/kernel/signal.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,8 @@ static int preserve_sve_context(struct sve_context __user *ctx)
244244
if (vq) {
245245
/*
246246
* This assumes that the SVE state has already been saved to
247-
* the task struct by calling preserve_fpsimd_context().
247+
* the task struct by calling the function
248+
* fpsimd_signal_preserve_current_state().
248249
*/
249250
err |= __copy_to_user((char __user *)ctx + SVE_SIG_REGS_OFFSET,
250251
current->thread.sve_state,

0 commit comments

Comments
 (0)