[PATCH v7 01/11] ARM: bugs: Check in the vtable instead of defined aliases

Sami Tolvanen samitolvanen at google.com
Mon Apr 22 14:27:07 PDT 2024


On Sun, Apr 21, 2024 at 11:28 AM Linus Walleij <linus.walleij at linaro.org> wrote:
>
> Instead of checking if cpu_check_bugs() exist, check for this
> callback directly in the CPU vtable: this is better because the
> function is just a define to the vtable entry and this is why
> the code works. But we want to be able to specify a proper
> function for cpu_check_bugs() so look into the vtable instead.
>
> In bugs.c assign PROC_VTABLE(switch_mm) instead of
> assigning cpu_do_switch_mm where again this is just a define
> into the vtable: this makes it possible to make
> cpu_do_switch_mm() into a real function.

Is this patch still needed? None of the remaining patches in this
series define these as functions anymore.

Sami



More information about the linux-arm-kernel mailing list