From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753961AbcAWRvv (ORCPT ); Sat, 23 Jan 2016 12:51:51 -0500 Received: from mail.skyhub.de ([78.46.96.112]:44103 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753019AbcAWRvs (ORCPT ); Sat, 23 Jan 2016 12:51:48 -0500 Date: Sat, 23 Jan 2016 18:51:14 +0100 From: Borislav Petkov To: Andy Lutomirski Cc: Andy Lutomirski , X86 ML , "linux-kernel@vger.kernel.org" , Fenghua Yu , Oleg Nesterov , Peter Zijlstra , Sai Praneeth Prakhya , yu-cheng yu , Dave Hansen , Rik van Riel , Linus Torvalds Subject: Re: [PATCH 1/5] x86/fpu: Fix math emulation in eager fpu mode Message-ID: <20160123175114.GE16329@pd.tnic> References: <20160123100253.GA16329@pd.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 23, 2016 at 09:40:06AM -0800, Andy Lutomirski wrote: > I'm confused. I want to make use_eager_fpu() return true always, so > how would this help? The idea is for FPU emulation to work despite > being in eager mode. I mean this: static __always_inline __pure bool use_eager_fpu(void) { if (!static_cpu_has(X86_FEATURE_FPU)) return false; return static_cpu_has(X86_FEATURE_EAGER_FPU); } Although now I realize that returning false is ambiguous here. F'get it. -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply.