linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: report present cpus in /proc/cpuinfo
@ 2011-06-21 22:56 Jon Mayo
  2011-06-21 22:59 ` Fabio Estevam
  2011-06-21 23:05 ` Russell King - ARM Linux
  0 siblings, 2 replies; 11+ messages in thread
From: Jon Mayo @ 2011-06-21 22:56 UTC (permalink / raw)
  To: linux-arm-kernel

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

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

end of thread, other threads:[~2011-06-22 20:57 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-21 22:56 [PATCH] ARM: report present cpus in /proc/cpuinfo Jon Mayo
2011-06-21 22:59 ` 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

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).