From: jmayo@nvidia.com (Jon Mayo)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: report present cpus in /proc/cpuinfo
Date: Tue, 21 Jun 2011 15:56:24 -0700 [thread overview]
Message-ID: <4E012198.6010405@nvidia.com> (raw)
Because arm linux likes to dynamically hotplug cpus, the meaning of
online has changed slightly. Previously online meant a cpus is
schedulable, and conversely offline means they it is not schedulable.
But with the current power management infrastructure there are cpus
that can be scheduled (after they are woken up automatically), yet are
not considered "online" because the masks and flags for them are not
set.
---
arch/arm/kernel/setup.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c
index d5231ae..2c52b4e 100644
--- a/arch/arm/kernel/setup.c
+++ b/arch/arm/kernel/setup.c
@@ -905,7 +905,7 @@ static int c_show(struct seq_file *m, void *v)
cpu_name, read_cpuid_id() & 15, elf_platform);
#if defined(CONFIG_SMP)
- for_each_online_cpu(i) {
+ for_each_present_cpu(i) {
/*
* glibc reads /proc/cpuinfo to determine the number of
* online processors, looking for lines beginning with
--
1.7.0.4
next reply other threads:[~2011-06-21 22:56 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-21 22:56 Jon Mayo [this message]
2011-06-21 22:59 ` [PATCH] ARM: report present cpus in /proc/cpuinfo Fabio Estevam
2011-06-21 23:05 ` Russell King - ARM Linux
2011-06-21 23:24 ` Jon Mayo
2011-06-21 23:36 ` Russell King - ARM Linux
2011-06-22 0:08 ` Jon Mayo
2011-06-22 9:36 ` Russell King - ARM Linux
2011-06-22 19:26 ` Jon Mayo
2011-06-22 20:19 ` Russell King - ARM Linux
2011-06-22 20:54 ` Jon Mayo
2011-06-22 20:57 ` Russell King - ARM Linux
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=4E012198.6010405@nvidia.com \
--to=jmayo@nvidia.com \
--cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).