Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755787AbcJGLGr (ORCPT ); Fri, 7 Oct 2016 07:06:47 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:43748 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753207AbcJGLGi (ORCPT ); Fri, 7 Oct 2016 07:06:38 -0400 Date: Fri, 7 Oct 2016 13:04:03 +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: 347 Lines: 11 On Thu, 6 Oct 2016, Yinghai Lu 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; > > + } So that means, that x2apic_apic_id_valid() is wrong as well ....