Re: [patch 2/3] x86/fpu: Rename irq_fpu_usable()

Borislav Petkov
2022-05-02T13:58:12Z

On Sun, May 01, 2022 at 09:31:45PM +0200, Thomas Gleixner wrote:
> --- a/arch/x86/kernel/fpu/core.c
> +++ b/arch/x86/kernel/fpu/core.c
> @@ -49,11 +49,12 @@ static DEFINE_PER_CPU(bool, in_kernel_fp
> */
> DEFINE_PER_CPU(struct fpu *, fpu_fpregs_owner_ctx);
>
> -/*
> - * Can we use the FPU in kernel mode with the
> - * whole "kernel_fpu_begin/end()" sequence?
> +/**
> + * kernel_fpu_usable - Check whether kernel FPU usage is possible
> + *
> + * Has to be invoked before calling kernel_fpu_begin().
> */

Ah, there it is.

Reviewed-by: Borislav Petkov <bp@suse.de>

--
Regards/Gruss,
Boris.