From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932198AbbCFHax (ORCPT ); Fri, 6 Mar 2015 02:30:53 -0500 Received: from mail-wi0-f177.google.com ([209.85.212.177]:40839 "EHLO mail-wi0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753357AbbCFHau (ORCPT ); Fri, 6 Mar 2015 02:30:50 -0500 Date: Fri, 6 Mar 2015 08:30:45 +0100 From: Ingo Molnar To: Andy Lutomirski Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Borislav Petkov , Oleg Nesterov , Denys Vlasenko , Linus Torvalds , Thomas Gleixner , "H. Peter Anvin" Subject: Re: [PATCH v2 6/6] x86, asm: Rename INIT_TSS_IST to TSS_IST Message-ID: <20150306073045.GA22194@gmail.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Andy Lutomirski wrote: > This has nothing to do with the init thread or the initial anything. > It's just the TSS. > > Signed-off-by: Andy Lutomirski > --- > arch/x86/kernel/entry_64.S | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/arch/x86/kernel/entry_64.S b/arch/x86/kernel/entry_64.S > index 0c00fd80249a..c86f83e95f15 100644 > --- a/arch/x86/kernel/entry_64.S > +++ b/arch/x86/kernel/entry_64.S > @@ -959,7 +959,7 @@ apicinterrupt IRQ_WORK_VECTOR \ > /* > * Exception entry points. > */ > -#define INIT_TSS_IST(x) PER_CPU_VAR(cpu_tss) + (TSS_ist + ((x) - 1) * 8) > +#define TSS_IST(x) PER_CPU_VAR(cpu_tss) + (TSS_ist + ((x) - 1) * 8) > > .macro idtentry sym do_sym has_error_code:req paranoid=0 shift_ist=-1 > ENTRY(\sym) > @@ -1015,13 +1015,13 @@ ENTRY(\sym) > .endif > > .if \shift_ist != -1 > - subq $EXCEPTION_STKSZ, INIT_TSS_IST(\shift_ist) > + subq $EXCEPTION_STKSZ, TSS_IST(\shift_ist) > .endif > > call \do_sym > > .if \shift_ist != -1 > - addq $EXCEPTION_STKSZ, INIT_TSS_IST(\shift_ist) > + addq $EXCEPTION_STKSZ, TSS_IST(\shift_ist) > .endif > > /* these procedures expect "no swapgs" flag in ebx */ If you don't mind I've renamed this to 'CPU_TSS_IST', to be in line with cpu_tss. The per-cpuness of this symbol gets lost at the usage sites, because the PER_CPU_VAR() reference is hidden in a macro. Thanks, Ingo