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/thread_info.h>

Go to the source code of this file.

Macros

#define switch_to(prev, next, last)
 

Functions

asmlinkage struct task_struct__switch_to (struct thread_struct *prev_thread, struct thread_struct *next_thread, struct task_struct *prev)
 

Macro Definition Documentation

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

Definition at line 27 of file switch_to.h.

Function Documentation

asmlinkage struct task_struct* __switch_to ( struct thread_struct prev_thread,
struct thread_struct next_thread,
struct task_struct prev 
)
read