Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=79974a0e4c6be6e9a3717b4c5a5d5c44c36b1653
Commit:     79974a0e4c6be6e9a3717b4c5a5d5c44c36b1653
Parent:     8317f14b60c02c69cf7f594e2aabc8a3fdc9618d
Author:     Heiko Carstens <[EMAIL PROTECTED]>
AuthorDate: Wed May 16 22:11:09 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Thu May 17 05:23:04 2007 -0700

    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.
    
    [EMAIL PROTECTED]: build fix]
    Signed-off-by: Heiko Carstens <[EMAIL PROTECTED]>
    Cc: Andi Kleen <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 include/linux/smp.h |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/include/linux/smp.h b/include/linux/smp.h
index 3f70149..96ac21f 100644
--- a/include/linux/smp.h
+++ b/include/linux/smp.h
@@ -6,6 +6,7 @@
  *             Alan Cox. <[EMAIL PROTECTED]>
  */
 
+#include <linux/errno.h>
 
 extern void cpu_idle(void);
 
@@ -99,11 +100,9 @@ static inline void smp_send_reschedule(int cpu) { }
 #define num_booting_cpus()                     1
 #define smp_prepare_boot_cpu()                 do {} while (0)
 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? */
-       func(info);
-       return 0;
+       return -EBUSY;
 }
 
 #endif /* !SMP */
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to