From patchwork Thu Sep 26 08:41:34 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hao X-Patchwork-Id: 278134 X-Patchwork-Delegate: benh@kernel.crashing.org Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [IPv6:::1]) by ozlabs.org (Postfix) with ESMTP id 55C6C2C0402 for ; Thu, 26 Sep 2013 18:42:54 +1000 (EST) Received: from mail-pb0-x22f.google.com (mail-pb0-x22f.google.com [IPv6:2607:f8b0:400e:c01::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (not verified)) by ozlabs.org (Postfix) with ESMTPS id DE7FC2C00CC for ; Thu, 26 Sep 2013 18:42:29 +1000 (EST) Received: by mail-pb0-f47.google.com with SMTP id rr4so833135pbb.20 for ; Thu, 26 Sep 2013 01:42:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=lRlc2NCxPQg3HP8dRCLkuVrVLjqmlRp3nwBMWMJ387U=; b=NUk69+Kp8uFg6vaIwwf70VlVU/OoVj3qv5o1FsIr3jY1RL+PELyKkLuXDyu9szVoKP 1Mg858IoUOWLlu2vYz71Mlwo4bgeEwQ799NzyyvNZPMMRrVIoDfO35Qbx4XiwLbZBSfI Zm7NOa4YkwespO6qCGw7WGL4u3hPLbmQAgCCpQupRmxshbpKeRi2g8OU10ueT9JzdFO7 cJ3I/EZSJxHtVpC9Q6T0666tlnCwWNsU7IteQPgtO1Tn1Z4iX8sAfU7M2xw8mr2KuZJy JKrBb5HwMiEyQCa9NeSa2ky7zHzMM5xgx1wKGa3j6EqjgSoadDRDg0bQDHuDM8U9hzjY sgkg== X-Received: by 10.66.119.202 with SMTP id kw10mr4006212pab.118.1380184947371; Thu, 26 Sep 2013 01:42:27 -0700 (PDT) Received: from pek-khao-d1.corp.ad.wrs.com ([1.202.252.122]) by mx.google.com with ESMTPSA id f2sm723468pbg.44.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 26 Sep 2013 01:42:26 -0700 (PDT) From: Kevin Hao To: Benjamin Herrenschmidt Subject: [PATCH] powerpc/ppc64: remove the unneeded load of ti_flags in resume_kernel Date: Thu, 26 Sep 2013 16:41:34 +0800 Message-Id: <1380184894-19862-1-git-send-email-haokexin@gmail.com> X-Mailer: git-send-email 1.8.3.1 Cc: Tiejun Chen , linuxppc X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.16rc2 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" We already got the value of current_thread_info and ti_flags and store them into r9 and r4 respectively before jumping to resume_kernel. So there is no reason to reload them again. Signed-off-by: Kevin Hao --- arch/powerpc/kernel/entry_64.S | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/powerpc/kernel/entry_64.S b/arch/powerpc/kernel/entry_64.S index c04cdf7..2fe620f 100644 --- a/arch/powerpc/kernel/entry_64.S +++ b/arch/powerpc/kernel/entry_64.S @@ -673,9 +673,7 @@ _GLOBAL(ret_from_except_lite) resume_kernel: /* check current_thread_info, _TIF_EMULATE_STACK_STORE */ - CURRENT_THREAD_INFO(r9, r1) - ld r8,TI_FLAGS(r9) - andis. r8,r8,_TIF_EMULATE_STACK_STORE@h + andis. r8,r4,_TIF_EMULATE_STACK_STORE@h beq+ 1f addi r8,r1,INT_FRAME_SIZE /* Get the kprobed function entry */