Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
switch_to.h File Reference
#include <asm/cpu-features.h>
#include <asm/watch.h>
#include <asm/dsp.h>

Go to the source code of this file.

Macros

#define __mips_mt_fpaff_switch_to(prev)   do { (void) (prev); } while (0)
 
#define __clear_software_ll_bit()
 
#define switch_to(prev, next, last)
 
#define finish_arch_switch(prev)
 

Functions

asmlinkage voidresume (void *last, void *next, void *next_ti, u32 __usedfpu)
 

Variables

unsigned int ll_bit
 
struct task_structll_task
 

Macro Definition Documentation

#define __clear_software_ll_bit ( )
Value:
do { \
if (!__builtin_constant_p(cpu_has_llsc) || !cpu_has_llsc) \
ll_bit = 0; \
} while (0)

Definition at line 61 of file switch_to.h.

#define __mips_mt_fpaff_switch_to (   prev)    do { (void) (prev); } while (0)

Definition at line 58 of file switch_to.h.

#define finish_arch_switch (   prev)
Value:
do { \
if (cpu_has_dsp) \
__restore_dsp(current); \
write_c0_userlocal(current_thread_info()->tp_value); \
__restore_watch(); \
} while (0)

Definition at line 78 of file switch_to.h.

#define switch_to (   prev,
  next,
  last 
)
Value:
do { \
u32 __usedfpu; \
__mips_mt_fpaff_switch_to(prev); \
if (cpu_has_dsp) \
__save_dsp(prev); \
__clear_software_ll_bit(); \
__usedfpu = test_and_clear_tsk_thread_flag(prev, TIF_USEDFPU); \
(last) = resume(prev, next, task_thread_info(next), __usedfpu); \
} while (0)

Definition at line 67 of file switch_to.h.

Function Documentation

asmlinkage void* resume ( void last,
void next,
void next_ti,
u32  __usedfpu 
)

Variable Documentation

unsigned int ll_bit

Definition at line 498 of file traps.c.

struct task_struct* ll_task

Definition at line 499 of file traps.c.