[PATCH v2 1/6] riscv: Clarify RISCV_ALTERNATIVE help text

Andrew Jones ajones at ventanamicro.com
Fri Feb 24 07:45:56 PST 2023


Clarify RISCV_ALTERNATIVE's help text by pointing out that code
patching is not only done at boot time, but also module load time.
Also point out that this is the minimal possible overhead.

Signed-off-by: Andrew Jones <ajones at ventanamicro.com>
---
 arch/riscv/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index 81eb031887d2..eb087e17c91b 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -380,8 +380,8 @@ config RISCV_ALTERNATIVE
 	help
 	  This Kconfig allows the kernel to automatically patch the
 	  errata required by the execution platform at run time. The
-	  code patching is performed once in the boot stages. It means
-	  that the overhead from this mechanism is just taken once.
+	  code patching overhead is minimal, as it's only done once
+	  at boot and once on each module load.
 
 config RISCV_ALTERNATIVE_EARLY
 	bool
-- 
2.39.1




More information about the linux-riscv mailing list