Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755637AbcJGLFr (ORCPT ); Fri, 7 Oct 2016 07:05:47 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:43739 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752842AbcJGLFl (ORCPT ); Fri, 7 Oct 2016 07:05:41 -0400 Date: Fri, 7 Oct 2016 13:02:59 +0200 (CEST) From: Thomas Gleixner To: Yinghai Lu cc: Dou Liyang , Linux Kernel Mailing List , Ingo Molnar , "H. Peter Anvin" , "linux-tip-commits@vger.kernel.org" , Tony Luck Subject: Re: [tip:x86/apic] x86/acpi: Introduce persistent storage for cpuid <-> apicid mapping In-Reply-To: Message-ID: References: <1472114120-3281-4-git-send-email-douly.fnst@cn.fujitsu.com> <4608f474-c49e-550b-90e2-c5f4c25e00f5@cn.fujitsu.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 620 Lines: 21 On Thu, 6 Oct 2016, Yinghai Lu wrote: > On Thu, Oct 6, 2016 at 1:06 AM, Dou Liyang wrote: > Yes, that should work. but should do the same thing for x2apic > > in acpi_parse_x2apic should have > > > + if (processor->local_apic_id == -1) { > > + ++disabled_cpus; > > + return -EINVAL; > > + } > > that is the reason why i want to extend acpi_register_lapic() > to take extra disabled_id (one is 0xff and another is 0xffffffff) > so could save some lines. That just makes the code harder to follow and is not really worth the trouble. Thanks, tglx