mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch 1/1] export cpu_online_map
@ 2005-10-26  4:20 akpm
  2005-10-27  3:50 ` Paul Jackson
  2005-10-28  2:49 ` Herbert Xu
  0 siblings, 2 replies; 12+ messages in thread
From: akpm @ 2005-10-26  4:20 UTC (permalink / raw)
  To: rajesh.shah; +Cc: mingo, pj, linux-kernel, akpm


From: Andrew Morton <akpm@osdl.org>

With CONFIG_SMP=n:

*** Warning: "cpu_online_map" [drivers/firmware/dcdbas.ko] undefined!

due to set_cpus_allowed().

Questions:

- Why isn't set_cpus_allowed() just a no-op on UP?  Or some trivial thing
  which tests for cpu #0?

- Why does cpu_online_map even exist on CONFIG_SMP=n?



Signed-off-by: Andrew Morton <akpm@osdl.org>
---

 kernel/sched.c |    1 +
 1 files changed, 1 insertion(+)

diff -puN kernel/sched.c~export-cpu_online_map kernel/sched.c
--- devel/kernel/sched.c~export-cpu_online_map	2005-10-25 21:13:28.000000000 -0700
+++ devel-akpm/kernel/sched.c	2005-10-25 21:19:36.000000000 -0700
@@ -3879,6 +3879,7 @@ EXPORT_SYMBOL(cpu_present_map);
 
 #ifndef CONFIG_SMP
 cpumask_t cpu_online_map = CPU_MASK_ALL;
+EXPORT_SYMBOL(cpu_online_map);
 cpumask_t cpu_possible_map = CPU_MASK_ALL;
 #endif
 
_

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

end of thread, other threads:[~2005-10-28  2:49 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-26  4:20 [patch 1/1] export cpu_online_map akpm
2005-10-27  3:50 ` Paul Jackson
2005-10-27  4:08   ` Andrew Morton
2005-10-27  8:55     ` Paul Jackson
2005-10-27  9:35       ` Andrew Morton
2005-10-27 13:38         ` Paul Jackson
2005-10-27 18:26           ` Andrew Morton
2005-10-27 19:08             ` Paul Jackson
2005-10-27 13:49         ` Paul Jackson
2005-10-27 10:48   ` Diego Calleja
2005-10-27 14:06     ` Paul Jackson
2005-10-28  2:49 ` Herbert Xu

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

Powered by JetHome