Go to the documentation of this file.
11 #ifndef _ASM_C6X_SWITCH_TO_H
12 #define _ASM_C6X_SWITCH_TO_H
14 #include <linux/linkage.h>
16 #define prepare_to_switch() do { } while (0)
24 #define switch_to(prev, next, last) \
26 current->thread.wchan = (u_long) __builtin_return_address(0); \
27 (last) = __switch_to(&(prev)->thread, \
28 &(next)->thread, (prev)); \
30 current->thread.wchan = 0; \