[PATCH] arm64/fpsimd: Remove duplicate SYS_SVCR read

Schspa Shi posted 1 patch 3 years, 10 months ago
arch/arm64/kernel/fpsimd.c | 1 -
1 file changed, 1 deletion(-)
[PATCH] arm64/fpsimd: Remove duplicate SYS_SVCR read
Posted by Schspa Shi 3 years, 10 months ago
It seems to be a typo, remove the duplicate SYS_SVCR read.

Signed-off-by: Schspa Shi <schspa@gmail.com>
---
 arch/arm64/kernel/fpsimd.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/arm64/kernel/fpsimd.c b/arch/arm64/kernel/fpsimd.c
index aecf3071efdd..dd63ffc3a2fa 100644
--- a/arch/arm64/kernel/fpsimd.c
+++ b/arch/arm64/kernel/fpsimd.c
@@ -445,7 +445,6 @@ static void fpsimd_save(void)
 
 	if (system_supports_sme()) {
 		u64 *svcr = last->svcr;
-		*svcr = read_sysreg_s(SYS_SVCR);
 
 		*svcr = read_sysreg_s(SYS_SVCR);
 
-- 
2.29.0
Re: [PATCH] arm64/fpsimd: Remove duplicate SYS_SVCR read
Posted by Will Deacon 3 years, 10 months ago
On Wed, 29 Jun 2022 13:10:23 +0800, Schspa Shi wrote:
> It seems to be a typo, remove the duplicate SYS_SVCR read.
> 
> 

Applied to arm64 (for-next/sme), thanks!

[1/1] arm64/fpsimd: Remove duplicate SYS_SVCR read
      https://git.kernel.org/arm64/c/4139320d19e6

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev