From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751077Ab1AIG3l (ORCPT ); Sun, 9 Jan 2011 01:29:41 -0500 Received: from mail-ww0-f44.google.com ([74.125.82.44]:51237 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750703Ab1AIG3k (ORCPT ); Sun, 9 Jan 2011 01:29:40 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=S7pEGRDmy6wnbRJBGG1H0K/edWAr57QJh9igBscRDDkqZETynd8DOQq/FaSiLfR0bC IKowUpX2nAelrobINlteN79jEJlwig2FKuRu74Bmd+CR3poKwcnhWc35aVDseC/PAeTp 9dOPEkoMjfgHHUc+MTXFoZoLN+14NxkhcIhFc= MIME-Version: 1.0 Date: Sun, 9 Jan 2011 12:29:39 +0600 Message-ID: Subject: [PATCH] x86, apic: Do not increment disabled_cpus from generic_processor_info. From: Rakib Mullick To: Ingo Molnar Cc: Thomas Gleixner , "H. Peter Anvin" , LKML , x86@kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org disabled_cpus has been incremented from the call path of generic_processor_info (i.e from acpi_register_lapic and MP_processor_info) when a perticular cpu is not enabled. So, we can remove the redundant increment of disabled_cpus from generic_processor_info. Signed-off-by: Rakib Mullick --- diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c index ce65d44..2499664 100644 --- a/arch/x86/kernel/apic/apic.c +++ b/arch/x86/kernel/apic/apic.c @@ -1943,7 +1943,6 @@ void __cpuinit generic_processor_info(int apicid, int version) "ACPI: NR_CPUS/possible_cpus limit of %i reached." " Processor %d/0x%x ignored.\n", max, thiscpu, apicid); - disabled_cpus++; return; }