From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755394AbcECHfT (ORCPT ); Tue, 3 May 2016 03:35:19 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:35321 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750756AbcECHfR (ORCPT ); Tue, 3 May 2016 03:35:17 -0400 Date: Tue, 3 May 2016 09:35:12 +0200 From: Ingo Molnar To: Mike Travis Cc: Ingo Molnar , "H. Peter Anvin" , Thomas Gleixner , Andrew Morton , Len Brown , Dimitri Sivanich , Russ Anderson , John Estabrook , Andrew Banman , Nathan Zimmer , x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 07/21] X86_64, UV: Disable Obsolete APIC ID fixup code used only on UV1 Message-ID: <20160503073512.GA13474@gmail.com> References: <20160429215402.458042580@asylum.americas.sgi.com> <20160429215403.767900970@asylum.americas.sgi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160429215403.767900970@asylum.americas.sgi.com> 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 * Mike Travis wrote: > +config X86_UV1_SUPPORTED > + bool "SGI Ultraviolet Series 1 Supported" > + depends on X86_UV So I still think it's much simpler if we simply eliminate this Kconfig complication and have it all compatible. AFAICS the runtime impact on newer systems comes down mostly to a single unlikely branch: > static unsigned int x2apic_get_apic_id(unsigned long x) > { > - unsigned int id; > + if (likely(!uv1_apic_driver)) > + return x; Thanks, Ingo