From: Rusty Russell <rusty@rustcorp.com.au>
To: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: linux-kernel@vger.kernel.org, Mike Travis <travis@sgi.com>
Cc: Mike Travis <travis@sgi.com>
Subject: [PATCH 3/4] cpumask: cpu_coregroup_mask(): s390
Date: Mon, 1 Dec 2008 16:47:20 +1030 [thread overview]
Message-ID: <200812011647.20296.rusty@rustcorp.com.au> (raw)
Like cpu_coregroup_map, but returns a (const) pointer.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Mike Travis <travis@sgi.com>
---
arch/s390/include/asm/topology.h | 1 +
arch/s390/kernel/topology.c | 5 +++++
2 files changed, 6 insertions(+)
diff -r 2d272f7b3a9b arch/s390/include/asm/topology.h
--- a/arch/s390/include/asm/topology.h Thu Nov 20 13:55:47 2008 +1030
+++ b/arch/s390/include/asm/topology.h Thu Nov 20 13:57:21 2008 +1030
@@ -6,6 +6,7 @@
#define mc_capable() (1)
cpumask_t cpu_coregroup_map(unsigned int cpu);
+const struct cpumask *cpu_coregroup_mask(unsigned int cpu);
extern cpumask_t cpu_core_map[NR_CPUS];
diff -r 2d272f7b3a9b arch/s390/kernel/topology.c
--- a/arch/s390/kernel/topology.c Thu Nov 20 13:55:47 2008 +1030
+++ b/arch/s390/kernel/topology.c Thu Nov 20 13:57:21 2008 +1030
@@ -91,6 +91,11 @@
if (cpus_empty(mask))
mask = cpumask_of_cpu(cpu);
return mask;
+}
+
+const struct cpumask *cpu_coregroup_mask(unsigned int cpu)
+{
+ return &cpu_core_map[cpu];
}
static void add_cpus_to_core(struct tl_cpu *tl_cpu, struct core_info *core)
reply other threads:[~2008-12-01 6:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=200812011647.20296.rusty@rustcorp.com.au \
--to=rusty@rustcorp.com.au \
--cc=heiko.carstens@de.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=travis@sgi.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