]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/x86/include/asm/preempt.h
sched, x86: Optimize the preempt_schedule() call
[karo-tx-linux.git] / arch / x86 / include / asm / preempt.h
index 1309942b95e52d7df08ff77d3aee2b099267e13f..1de41690ff997f677ec061581ab61f44f05075db 100644 (file)
@@ -95,4 +95,14 @@ static __always_inline bool should_resched(void)
        return unlikely(!__this_cpu_read_4(__preempt_count));
 }
 
+#ifdef CONFIG_PREEMPT
+  extern asmlinkage void ___preempt_schedule(void);
+# define __preempt_schedule() asm ("call ___preempt_schedule")
+  extern asmlinkage void preempt_schedule(void);
+# ifdef CONFIG_CONTEXT_TRACKING
+    extern asmlinkage void ___preempt_schedule_context(void);
+#   define __preempt_schedule_context() asm ("call ___preempt_schedule_context")
+# endif
+#endif
+
 #endif /* __ASM_PREEMPT_H */