Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
switch_to.h File Reference
#include <linux/linkage.h>

Go to the source code of this file.

Macros

#define prepare_to_switch()   do { } while (0)
 
#define switch_to(prev, next, last)
 

Functions

asmlinkage void__switch_to (struct thread_struct *prev, struct thread_struct *next, struct task_struct *tsk)
 

Macro Definition Documentation

#define prepare_to_switch ( )    do { } while (0)

Definition at line 16 of file switch_to.h.

#define switch_to (   prev,
  next,
  last 
)
Value:
do { \
current->thread.wchan = (u_long) __builtin_return_address(0); \
(last) = __switch_to(&(prev)->thread, \
&(next)->thread, (prev)); \
mb(); \
current->thread.wchan = 0; \
} while (0)

Definition at line 24 of file switch_to.h.

Function Documentation

asmlinkage void* __switch_to ( struct thread_struct prev,
struct thread_struct next,
struct task_struct tsk 
)