From: Laurent Vivier <Laurent.Vivier@bull.net>
To: Ingo Molnar <mingo@elte.hu>
Cc: linux-kernel <linux-kernel@vger.kernel.org>,
Avi Kivity <avi@qumranet.com>
Subject: [PATCH] export i386 smp_call_function_mask() to modules
Date: Fri, 24 Aug 2007 17:36:35 +0200 [thread overview]
Message-ID: <46CEFB03.5040302@bull.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 328 bytes --]
This patch export i386 smp_call_function_mask() with EXPORT_SYMBOL().
This function is needed by KVM to call a function on a set of CPUs.
arch/i386/kernel/smp.c | 7 +++++++
include/asm-i386/smp.h | 9 +++------
2 files changed, 10 insertions(+), 6 deletions(-)
Signed-off-by: Laurent Vivier <Laurent.Vivier@bull.net>
[-- Attachment #2: smp_call_function_mask-i386 --]
[-- Type: text/plain, Size: 1365 bytes --]
Index: kvm/arch/i386/kernel/smp.c
===================================================================
--- kvm.orig/arch/i386/kernel/smp.c 2007-08-24 17:09:46.000000000 +0200
+++ kvm/arch/i386/kernel/smp.c 2007-08-24 17:09:48.000000000 +0200
@@ -705,3 +705,10 @@ struct smp_ops smp_ops = {
.smp_send_reschedule = native_smp_send_reschedule,
.smp_call_function_mask = native_smp_call_function_mask,
};
+
+int smp_call_function_mask(cpumask_t mask, void (*func) (void *info),
+ void *info, int wait)
+{
+ return smp_ops.smp_call_function_mask(mask, func, info, wait);
+}
+EXPORT_SYMBOL(smp_call_function_mask);
Index: kvm/include/asm-i386/smp.h
===================================================================
--- kvm.orig/include/asm-i386/smp.h 2007-08-24 17:09:46.000000000 +0200
+++ kvm/include/asm-i386/smp.h 2007-08-24 17:10:34.000000000 +0200
@@ -92,12 +92,9 @@ static inline void smp_send_reschedule(i
{
smp_ops.smp_send_reschedule(cpu);
}
-static inline int smp_call_function_mask(cpumask_t mask,
- void (*func) (void *info), void *info,
- int wait)
-{
- return smp_ops.smp_call_function_mask(mask, func, info, wait);
-}
+extern int smp_call_function_mask(cpumask_t mask,
+ void (*func) (void *info), void *info,
+ int wait);
void native_smp_prepare_boot_cpu(void);
void native_smp_prepare_cpus(unsigned int max_cpus);
next reply other threads:[~2007-08-24 15:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-24 15:36 Laurent Vivier [this message]
2007-08-24 17:42 ` [PATCH] export i386 smp_call_function_mask() to modules Arjan van de Ven
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=46CEFB03.5040302@bull.net \
--to=laurent.vivier@bull.net \
--cc=avi@qumranet.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.