[v3, 4/5] riscv: vector: do not pass task_struct into riscv_v_vstate_{save,restore}()
Conor Dooley
conor at kernel.org
Tue Oct 24 04:26:55 PDT 2023
On Thu, Oct 19, 2023 at 03:45:51PM +0000, Andy Chiu wrote:
> riscv_v_vstate_{save,restore}() can operate only on the knowlege of
> struct __riscv_v_ext_state, and struct pt_regs. Let the caller decides
> which should be passed into the function. Meanwhile, the kernel-mode
> Vector is going to introduce another vstate, so this also makes functions
> potentially able to be reused.
>
> Signed-off-by: Andy Chiu <andy.chiu at sifive.com>
> ---
> Changelog v3:
> - save V context after get_cpu_vector_context
> Changelog v2:
> - fix build fail that get caught on this patch (Conor)
Acked-by: Conor Dooley <conor.dooley at microchip.com>
Cheers,
Conor.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-riscv/attachments/20231024/a54e0870/attachment.sig>
More information about the linux-riscv
mailing list