diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-12 19:28:26 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-12 19:28:26 -0500 |
commit | 1181a2449969c59f0ab6b95374fe6983cc07286d (patch) | |
tree | cdbd320e6d2e0854ef8c699eb711d22e03275522 /kernel/up.c | |
parent | b743791639d8142277df1c2814c282e3ad752f06 (diff) | |
parent | 9d0793370987b98708d2f75ee3bba7c1008d8512 (diff) |
Merge branch 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
sparc64: Fix cpumask related build failure
smp_call_function_single(): be slightly less stupid, fix
smp_call_function_single(): be slightly less stupid
rcu: fix bug in rcutorture system-shutdown code
Diffstat (limited to 'kernel/up.c')
-rw-r--r-- | kernel/up.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/kernel/up.c b/kernel/up.c new file mode 100644 index 000000000000..c04b9dcfcebe --- /dev/null +++ b/kernel/up.c | |||
@@ -0,0 +1,20 @@ | |||
1 | /* | ||
2 | * Uniprocessor-only support functions. The counterpart to kernel/smp.c | ||
3 | */ | ||
4 | |||
5 | #include <linux/kernel.h> | ||
6 | #include <linux/module.h> | ||
7 | #include <linux/smp.h> | ||
8 | |||
9 | int smp_call_function_single(int cpu, void (*func) (void *info), void *info, | ||
10 | int wait) | ||
11 | { | ||
12 | WARN_ON(cpu != 0); | ||
13 | |||
14 | local_irq_disable(); | ||
15 | (func)(info); | ||
16 | local_irq_enable(); | ||
17 | |||
18 | return 0; | ||
19 | } | ||
20 | EXPORT_SYMBOL(smp_call_function_single); | ||