From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753592AbbCQR61 (ORCPT ); Tue, 17 Mar 2015 13:58:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37408 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752062AbbCQR60 (ORCPT ); Tue, 17 Mar 2015 13:58:26 -0400 Message-ID: <55086B1F.6020602@redhat.com> Date: Tue, 17 Mar 2015 18:57:51 +0100 From: Denys Vlasenko User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: tglx@linutronix.de, fweisbec@gmail.com, mingo@kernel.org, ast@plumgrid.com, oleg@redhat.com, luto@amacapital.net, keescook@chromium.org, hpa@zytor.com, bp@alien8.de, torvalds@linux-foundation.org, rostedt@goodmis.org, linux-kernel@vger.kernel.org, wad@chromium.org, linux-tip-commits@vger.kernel.org Subject: Re: [tip:x86/asm] x86/asm/entry/64: Rename 'old_rsp' to 'rsp_scratch' References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/17/2015 05:43 PM, tip-bot for Ingo Molnar wrote: > Commit-ID: c38e503804b0402c510f82437069f7769fa0cea9 > Gitweb: http://git.kernel.org/tip/c38e503804b0402c510f82437069f7769fa0cea9 > Author: Ingo Molnar > AuthorDate: Tue, 17 Mar 2015 14:42:59 +0100 > Committer: Ingo Molnar > CommitDate: Tue, 17 Mar 2015 16:01:42 +0100 > > x86/asm/entry/64: Rename 'old_rsp' to 'rsp_scratch' > > Make clear that the usage of PER_CPU(old_rsp) is purely temporary, > by renaming it to 'rsp_scratch'. ... > @@ -657,7 +657,7 @@ common_interrupt: > ASM_CLAC > addq $-0x80,(%rsp) /* Adjust vector to [-256,-1] range */ > interrupt do_IRQ > - /* 0(%rsp): old_rsp */ > + /* 0(%rsp): rsp_scratch */ > ret_from_intr: Here the "old_rsp" word in comment did not refer to old_rsp variable. Rather, it literally means "old %rsp register value (before we possibly switched to per-CPU interrupt stack)". The stack switch is hidden in "interrupt do_IRQ" macro invocation. I think here "old_rsp" needs to be replaced by "old rsp" or "old %rsp".