linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: akpm@osdl.org
To: rajesh.shah@intel.com
Cc: mingo@elte.hu, pj@sgi.com, linux-kernel@vger.kernel.org, akpm@osdl.org
Subject: [patch 1/1] export cpu_online_map
Date: Tue, 25 Oct 2005 21:20:48 -0700	[thread overview]
Message-ID: <200510260421.j9Q4LGh9014087@shell0.pdx.osdl.net> (raw)


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
 
_

             reply	other threads:[~2005-10-26  4:21 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-26  4:20 akpm [this message]
2005-10-27  3:50 ` [patch 1/1] export cpu_online_map 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

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=200510260421.j9Q4LGh9014087@shell0.pdx.osdl.net \
    --to=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=pj@sgi.com \
    --cc=rajesh.shah@intel.com \
    /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).