]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/smp.h
[DLM] add lock timeouts and warnings [2/6]
[linux-2.6-omap-h63xx.git] / include / linux / smp.h
index 837e8bce134930405e98192986c3b4fd10ce4151..96ac21f8dd735ae2db06d9f16048bec4c8e40a23 100644 (file)
@@ -6,6 +6,7 @@
  *             Alan Cox. <alan@redhat.com>
  */
 
+#include <linux/errno.h>
 
 extern void cpu_idle(void);
 
@@ -53,6 +54,9 @@ extern void smp_cpus_done(unsigned int max_cpus);
  */
 int smp_call_function(void(*func)(void *info), void *info, int retry, int wait);
 
+int smp_call_function_single(int cpuid, void (*func) (void *info), void *info,
+                               int retry, int wait);
+
 /*
  * Call a function on all processors
  */
@@ -80,7 +84,6 @@ void smp_prepare_boot_cpu(void);
  *     These macros fold the SMP functionality into a single CPU system
  */
 #define raw_smp_processor_id()                 0
-#define hard_smp_processor_id()                        0
 static inline int up_smp_call_function(void)
 {
        return 0;
@@ -96,6 +99,11 @@ static inline int up_smp_call_function(void)
 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)
+{
+       return -EBUSY;
+}
 
 #endif /* !SMP */