From: Rusty Russell <rusty@rustcorp.com.au>
To: Paul Mundt <lethal@linux-sh.org>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH 5/7] cpumask: arch_send_call_function_ipi_mask: sh
Date: Fri, 12 Jun 2009 22:32:35 +0930 [thread overview]
Message-ID: <20090612133109.90693DDD01@ozlabs.org> (raw)
We're weaning the core code off handing cpumask's around on-stack.
This introduces arch_send_call_function_ipi_mask(), and by defining
it, the old arch_send_call_function_ipi is defined by the core code.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
---
arch/sh/include/asm/smp.h | 3 ++-
arch/sh/kernel/smp.c | 4 ++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/arch/sh/include/asm/smp.h b/arch/sh/include/asm/smp.h
--- a/arch/sh/include/asm/smp.h
+++ b/arch/sh/include/asm/smp.h
@@ -43,7 +43,8 @@ void plat_send_ipi(unsigned int cpu, uns
void plat_send_ipi(unsigned int cpu, unsigned int message);
void arch_send_call_function_single_ipi(int cpu);
-void arch_send_call_function_ipi(cpumask_t mask);
+extern void arch_send_call_function_ipi_mask(const struct cpumask *mask);
+#define arch_send_call_function_ipi_mask arch_send_call_function_ipi_mask
#else
diff --git a/arch/sh/kernel/smp.c b/arch/sh/kernel/smp.c
--- a/arch/sh/kernel/smp.c
+++ b/arch/sh/kernel/smp.c
@@ -171,11 +171,11 @@ void smp_send_stop(void)
smp_call_function(stop_this_cpu, 0, 0);
}
-void arch_send_call_function_ipi(cpumask_t mask)
+void arch_send_call_function_ipi_mask(const struct cpumask *mask)
{
int cpu;
- for_each_cpu_mask(cpu, mask)
+ for_each_cpu(cpu, mask)
plat_send_ipi(cpu, SMP_MSG_FUNCTION);
}
next prev reply other threads:[~2009-06-12 13:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-12 13:03 [PATCH 5/13] cpumask: Use accessors for cpu_*_mask: sh Rusty Russell
2009-06-12 13:03 ` [PATCH 11/13] cpumask: use mm_cpumask() wrapper: sh Rusty Russell
2009-06-12 13:02 ` Rusty Russell [this message]
2009-06-12 13:01 ` [PATCH 4/17] cpumask: remove the now-obsoleted pcibus_to_cpumask(): sh Rusty Russell
2009-06-15 2:45 ` Paul Mundt
2009-06-15 5:43 ` Rusty Russell
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=20090612133109.90693DDD01@ozlabs.org \
--to=rusty@rustcorp.com.au \
--cc=lethal@linux-sh.org \
--cc=linux-kernel@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
Powered by JetHome