diff options
| author | Andy Chiu <tchiu@tenstorrent.com> | 2026-10-05 19:02:55 -0600 |
|---|---|---|
| committer | Paul Walmsley <pjw@kernel.org> | 2026-10-07 20:40:43 -0600 |
| commit | abf33d62127fc11b8df04ea5922801aaf19af0b9 (patch) | |
| tree | 6c1dd581353fc1933b84b40bee2b5d81d6c86c36 /include/linux/workqueue_api.h | |
| parent | 30514aa420fd8be54b67e8f940699f636d24ab8d (diff) | |
riscv: do not read csr in vector context switch
CSR operation can be costly as it may introduces serialization. Instead
of reading from sstatus.vs to the detect voluntary context switch in
kernel-mode vector, we can read the context depth from riscv_v_flags, as
it is always non-zero on a trap-introduced context switch.
Signed-off-by: Andy Chiu <tchiu@tenstorrent.com>
Link: https://patch.msgid.link/20260918215154.2481482-2-tchiu@tenstorrent.com
Signed-off-by: Paul Walmsley <pjw@kernel.org>
Diffstat (limited to 'include/linux/workqueue_api.h')
0 files changed, 0 insertions, 0 deletions
