arm64/signal: Update the comment in preserve_sve_context
authorJulien Grall <julien.grall@arm.com>
Fri, 28 Aug 2020 18:11:49 +0000 (19:11 +0100)
committerWill Deacon <will@kernel.org>
Mon, 21 Sep 2020 17:06:32 +0000 (18:06 +0100)
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>
arch/arm64/kernel/signal.c

index 3b4f31f..f3af68d 100644 (file)
@@ -244,7 +244,8 @@ static int preserve_sve_context(struct sve_context __user *ctx)
        if (vq) {
                /*
                 * This assumes that the SVE state has already been saved to
-                * the task struct by calling preserve_fpsimd_context().
+                * the task struct by calling the function
+                * fpsimd_signal_preserve_current_state().
                 */
                err |= __copy_to_user((char __user *)ctx + SVE_SIG_REGS_OFFSET,
                                      current->thread.sve_state,