]> err.no Git - linux-2.6/blobdiff - include/asm-arm/system.h
[PATCH] e1000: Added disable packet split capability
[linux-2.6] / include / asm-arm / system.h
index 5621d61ebc07958e9e7a671def64f410fe26dcb1..eb2de8c10515d118aa8616e27adb2f6accd149ad 100644 (file)
@@ -168,9 +168,19 @@ extern struct task_struct *__switch_to(struct task_struct *, struct thread_info
 
 #define switch_to(prev,next,last)                                      \
 do {                                                                   \
-       last = __switch_to(prev,prev->thread_info,next->thread_info);   \
+       last = __switch_to(prev,task_thread_info(prev), task_thread_info(next));        \
 } while (0)
 
+/*
+ * On SMP systems, when the scheduler does migration-cost autodetection,
+ * it needs a way to flush as much of the CPU's caches as possible.
+ *
+ * TODO: fill this in!
+ */
+static inline void sched_cacheflush(void)
+{
+}
+
 /*
  * CPU interrupt mask handling.
  */