]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-um/smp.h
tcp: reorganize retransmit code loops
[linux-2.6-omap-h63xx.git] / include / asm-um / smp.h
index 4412d5d9c26ba7376a738ba419f2b544b88486fe..f27a963131741ba935f80ec424c9b4c413ae63d4 100644 (file)
@@ -3,12 +3,12 @@
 
 #ifdef CONFIG_SMP
 
-#include "linux/config.h"
 #include "linux/bitops.h"
 #include "asm/current.h"
 #include "linux/cpumask.h"
 
-#define smp_processor_id() (current_thread->cpu)
+#define raw_smp_processor_id() (current_thread->cpu)
+
 #define cpu_logical_map(n) (n)
 #define cpu_number_map(n) (n)
 #define PROC_CHANGE_PENALTY    15 /* Pick a number, any number */
@@ -18,10 +18,16 @@ extern int hard_smp_processor_id(void);
 extern int ncpus;
 
 
-extern inline void smp_cpus_done(unsigned int maxcpus)
+static inline void smp_cpus_done(unsigned int maxcpus)
 {
 }
 
+extern struct task_struct *idle_threads[NR_CPUS];
+
+#else
+
+#define hard_smp_processor_id()                0
+
 #endif
 
 #endif