From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754487AbcJNQx0 (ORCPT ); Fri, 14 Oct 2016 12:53:26 -0400 Received: from mga01.intel.com ([192.55.52.88]:14132 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752900AbcJNQxZ (ORCPT ); Fri, 14 Oct 2016 12:53:25 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,493,1473145200"; d="scan'208";a="20083180" Subject: Re: [PATCH 1/2] x86/fpu: remove cpu argument to __cpu_invalidate_fpregs_state To: riel@redhat.com, linux-kernel@vger.kernel.org References: <1476447331-21566-1-git-send-email-riel@redhat.com> <1476447331-21566-2-git-send-email-riel@redhat.com> Cc: hpa@zytor.com, mingo@kernel.org, bp@alien8.de, luto@kernel.org, oleg@redhat.comm From: Dave Hansen Message-ID: <58010D7E.8050906@linux.intel.com> Date: Fri, 14 Oct 2016 09:53:18 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 MIME-Version: 1.0 In-Reply-To: <1476447331-21566-2-git-send-email-riel@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/14/2016 05:15 AM, riel@redhat.com wrote: > From: Rik van Riel > > The __{fpu,cpu}_invalidate_fpregs_state functions can only be used > to invalidate a resource they control. Document that, and change > the API a little bit to reflect that. > > Go back to open coding the fpu_fpregs_owner_ctx write in the CPU > hotplug code, which should be the exception, and move __kernel_fpu_begin > to this API. > > This patch has no functional changes to the current code. > > Signed-off-by: Rik van Riel Looks totally sane to me. Acked-by: Dave Hansen