From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3rV5g523jyzDqmM for ; Wed, 15 Jun 2016 22:39:13 +1000 (AEST) In-Reply-To: <1464523432-12605-2-git-send-email-anton@ozlabs.org> To: Anton Blanchard , benh@kernel.crashing.org, paulus@samba.org, aneesh.kumar@linux.vnet.ibm.com, acsawdey@linux.vnet.ibm.com From: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Subject: Re: [2/3] powerpc: Avoid load hit store in setup_sigcontext() Message-Id: <3rV5g512vHz9t1V@ozlabs.org> Date: Wed, 15 Jun 2016 22:39:12 +1000 (AEST) List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Sun, 2016-29-05 at 12:03:51 UTC, Anton Blanchard wrote: > From: Anton Blanchard > > In setup_sigcontext(), we set current->thread.vrsave then use it > straight after. Since current is hidden from the compiler via inline > assembly, it cannot optimise this and we end up with a load hit store. > > Fix this by using a temporary. > > Signed-off-by: Anton Blanchard Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/d96f234f47aff593538f9e3d67 cheers