mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Rakib Mullick <rakib.mullick@gmail.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>,
	"H. Peter Anvin" <hpa@zytor.com>,
	LKML <linux-kernel@vger.kernel.org>,
	x86@kernel.org
Subject: [PATCH] x86, apic: Do not increment disabled_cpus from generic_processor_info.
Date: Sun, 9 Jan 2011 12:29:39 +0600	[thread overview]
Message-ID: <AANLkTimb7wj0oP_ctr7Ergf4VmVFTMHU3QCCaLcPE5Q9@mail.gmail.com> (raw)

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

             reply	other threads:[~2011-01-09  6:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-09  6:29 Rakib Mullick [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTimb7wj0oP_ctr7Ergf4VmVFTMHU3QCCaLcPE5Q9@mail.gmail.com \
    --to=rakib.mullick@gmail.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®