Commit 79974a0e authored by Heiko Carstens's avatar Heiko Carstens Committed by Linus Torvalds

Let smp_call_function_single return -EBUSY on UP

All architectures that have an implementation of smp_call_function_single
let it return -EBUSY if it is asked to execute func on the current cpu.
(akpm: except for x86_64).  Therefore the UP version must always return
-EBUSY.

[akpm@linux-foundation.org: build fix]
Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 8317f14b
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
* Alan Cox. <alan@redhat.com> * Alan Cox. <alan@redhat.com>
*/ */
#include <linux/errno.h>
extern void cpu_idle(void); extern void cpu_idle(void);
...@@ -101,9 +102,7 @@ static inline void smp_send_reschedule(int cpu) { } ...@@ -101,9 +102,7 @@ static inline void smp_send_reschedule(int cpu) { }
static inline int smp_call_function_single(int cpuid, void (*func) (void *info), static inline int smp_call_function_single(int cpuid, void (*func) (void *info),
void *info, int retry, int wait) void *info, int retry, int wait)
{ {
/* Disable interrupts here? */ return -EBUSY;
func(info);
return 0;
} }
#endif /* !SMP */ #endif /* !SMP */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment