From: Stephane Eranian <eranian@hpl.hp.com>
To: linux-ia64@vger.kernel.org
Subject: [PATCH] export cpu_sibling_map
Date: Wed, 20 Sep 2006 19:53:47 +0000 [thread overview]
Message-ID: <20060920195347.GD27323@frankl.hpl.hp.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 427 bytes --]
Hello Tony,
For Montecito PMU support, I need to determine, in a kernel module, whether
or not threads are enabled. The only reliable way of doing this is to
compute the bit-weight of cpu_sibling_map[]. This symbol is exported on
x86 systems, but not on IA-64 so far. This patch exports the symbol.
Changelog:
- export cpu_sibling_map[] to kernel modules
signed-off-by: stephane eranian <eranian@hpl.hp.com>
--
-Stephane
[-- Attachment #2: smp_sibling_map.diff --]
[-- Type: text/plain, Size: 390 bytes --]
diff --git a/arch/ia64/kernel/smpboot.c b/arch/ia64/kernel/smpboot.c
--- a/arch/ia64/kernel/smpboot.c
+++ b/arch/ia64/kernel/smpboot.c
@@ -139,6 +139,7 @@ EXPORT_SYMBOL(cpu_possible_map);
cpumask_t cpu_core_map[NR_CPUS] __cacheline_aligned;
cpumask_t cpu_sibling_map[NR_CPUS] __cacheline_aligned;
+EXPORT_SYMBOL(cpu_sibling_map);
int smp_num_siblings = 1;
int smp_num_cpucores = 1;
next reply other threads:[~2006-09-20 19:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-20 19:53 Stephane Eranian [this message]
2006-09-20 20:23 ` [PATCH] export cpu_sibling_map Christoph Hellwig
2006-09-20 20:29 ` Luck, Tony
2006-09-20 20:55 ` Stephane Eranian
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=20060920195347.GD27323@frankl.hpl.hp.com \
--to=eranian@hpl.hp.com \
--cc=linux-ia64@vger.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