[PATCH] riscv: vector: Fix a typo of preempt_v

Song Shuai songshuaishuai at tinylab.org
Mon Feb 5 20:42:17 PST 2024


The term "preempt_v" represents the RISCV_PREEMPT_V field of riscv_v_flags
and is used in lots of comments.

Here corrects the miss-spelling "prempt_v".

Signed-off-by: Song Shuai <songshuaishuai at tinylab.org>
---
 arch/riscv/include/asm/simd.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/riscv/include/asm/simd.h b/arch/riscv/include/asm/simd.h
index 54efbf523d49..04baee713eff 100644
--- a/arch/riscv/include/asm/simd.h
+++ b/arch/riscv/include/asm/simd.h
@@ -36,7 +36,7 @@ static __must_check inline bool may_use_simd(void)
 	/*
 	 * Nesting is acheived in preempt_v by spreading the control for
 	 * preemptible and non-preemptible kernel-mode Vector into two fields.
-	 * Always try to match with prempt_v if kernel V-context exists. Then,
+	 * Always try to match with preempt_v if kernel V-context exists. Then,
 	 * fallback to check non preempt_v if nesting happens, or if the config
 	 * is not set.
 	 */
-- 
2.39.2




More information about the linux-riscv mailing list