Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp231699iob; Mon, 2 May 2022 17:58:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNYz0hlV1B5LtJSVhB8s/nVeUw3fkYRpolM8h7Tb8/czIYmKDwne25sXGGEFwcAdZDZOYJ X-Received: by 2002:a63:3f0e:0:b0:386:1d94:312a with SMTP id m14-20020a633f0e000000b003861d94312amr11861016pga.317.1651539509644; Mon, 02 May 2022 17:58:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651539509; cv=none; d=google.com; s=arc-20160816; b=t2DwLUs8mrk4hVr483rIHGy4pAXmr6o5bui+MYp+Pp4aUG37fFTuzj1o4nws8vKxpW CVizts+TlBfVfNIYovGCyxB2ydUPnBR4tg/W+/3c8IL6mJqngR5iYEuSvY2ILW55d8/P nczVpLq3ClBRX/3+jO05kNQCQAKFOifVAl3iWFOX0UCr2atYUjPvqD/pfrNWTWaZLG3D dXDaXGiKKRquxVIDzcXuOo4/siyB7YzEnzs8ZYrUNvpbKnjf3l1ecT5qfLc8YpPl+o6p UNnF92kXPqFWAiUtR8DueUYEIIKcS1GDyDu3LbMWMHrb8NQb3wYmzKWQ7u3UxUB+HgmM w5yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=AziFsJ9dHggKgPyDuLgpr4udvJ4pOtHvywmf8k8zxcE=; b=uv07/83XYPzzYV4bS5AT7wGlH34Z9w+x3spgQ7wjVjSaIVTOHfyi6+SlwwvXkjejb5 klaqAwQdAq/dfBWwLpyfocLV/8zQnjcmPY/Df7K5HWZevztHJtKErvtKUXn9SyPTxoNY gFq3LSJkNb6gdXbA89hSsQeRonEx0+muJvIo6Sl3vZzNEXETh5vUOz2flRg6KiO23vEu o4dWAsE6yGj3urtBulOLZ+58DRLCna7iPsDIMz1wzMLanVUI4o981FphklLeej9I2KOW 4tPMk0RLKmygnM3m1qbBAmjbmTD1Zkulkw3xvMbxOgueboUQ+9t50tReZqzfiCMwLLDa /03Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=luIAZCoe; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id nd1-20020a17090b4cc100b001d291084911si810023pjb.151.2022.05.02.17.58.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 17:58:29 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=luIAZCoe; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 929B152E6F; Mon, 2 May 2022 17:44:03 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236637AbiEBOBi (ORCPT + 99 others); Mon, 2 May 2022 10:01:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236512AbiEBOBd (ORCPT ); Mon, 2 May 2022 10:01:33 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9DEC1263D for ; Mon, 2 May 2022 06:58:04 -0700 (PDT) Received: from zn.tnic (p5de8eeb4.dip0.t-ipconnect.de [93.232.238.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id D64B51EC0373; Mon, 2 May 2022 15:57:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1651499878; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=AziFsJ9dHggKgPyDuLgpr4udvJ4pOtHvywmf8k8zxcE=; b=luIAZCoeOcvBZAUeO8jCCvSFbJsRv8GEIT97wmcSlEsqidoK1079wSfOfaMw6YnMKIyvVl bB3F2ceGM0nqlfaQbaeBi7iYFD6NicAeZExeo5Qnr8c1oZrnKc3E9J0LTw+zmS3TA+x1d1 IOcA9iM3aWuv39HSnfXmO2RXicMMRNI= Date: Mon, 2 May 2022 15:57:56 +0200 From: Borislav Petkov To: Thomas Gleixner Cc: LKML , x86@kernel.org, Filipe Manana Subject: Re: [patch 2/3] x86/fpu: Rename irq_fpu_usable() Message-ID: References: <20220501192740.203963477@linutronix.de> <20220501193102.647328777@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220501193102.647328777@linutronix.de> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette