[PATCH v2 1/3] ARM: vfp: Pass thread_info pointer to vfp_support_entry

Linus Walleij linus.walleij at linaro.org
Tue Mar 14 13:22:53 PDT 2023


On Tue, Mar 14, 2023 at 8:28 PM Ard Biesheuvel <ardb at kernel.org> wrote:

> Instead of dereferencing thread_info in do_vfp, pass the thread_info
> pointer to vfp_support_entry via R1. That way, we only use a single
> caller save register, which makes it easier to convert do_vfp to C code
> in a subsequent patch.
>
> Note that, unlike the CPU number, which can change due to preemption,
> passing the thread_info pointer can safely be done with preemption
> enabled.
>
> Signed-off-by: Ard Biesheuvel <ardb at kernel.org>

Looks correct to me!
Reviewed-by: Linus Walleij <linus.walleij at linaro.org>

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list