[PATCH v6 2/8] riscv: vector: refactor context switch for kernel-mode vector
Paul Walmsley
pjw at kernel.org
Tue Oct 6 03:02:08 PDT 2026
On Fri, 18 Sep 2026, Andy Chiu wrote:
> When context switching out a thread in preemptible kernel-mode vector,
> there are 2 distinct cases: One is voluntary switch and the other is
> trap-introduced switch. We don't need to save vector context for
> voluntary switch and the context is always !dirty as long as we clear
> the dirty bit at riscv_v_context_nesting_end().
>
> Signed-off-by: Andy Chiu <tchiu at tenstorrent.com>
Thanks, queued for v7.4.
- Paul
More information about the linux-riscv
mailing list