public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86, apic: Do not increment disabled_cpus from generic_processor_info.
@ 2011-01-09  6:29 Rakib Mullick
  2011-01-09  9:39 ` Ingo Molnar
  0 siblings, 1 reply; 9+ messages in thread
From: Rakib Mullick @ 2011-01-09  6:29 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: Thomas Gleixner, H. Peter Anvin, LKML, x86

 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 <rakib.mullick@gmail.com>
---

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;
 	}

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-01-10 14:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-09  6:29 [PATCH] x86, apic: Do not increment disabled_cpus from generic_processor_info Rakib Mullick
2011-01-09  9:39 ` Ingo Molnar
2011-01-09 11:44   ` Cyrill Gorcunov
2011-01-09 17:09     ` Rakib Mullick
2011-01-09 16:57   ` Rakib Mullick
2011-01-09 18:38     ` Cyrill Gorcunov
2011-01-10  4:06       ` Rakib Mullick
2011-01-10  9:57         ` Cyrill Gorcunov
2011-01-10 14:04           ` Rakib Mullick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox