Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
process.c File Reference
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/smp.h>
#include <linux/prctl.h>
#include <linux/slab.h>
#include <linux/sched.h>
#include <linux/module.h>
#include <linux/pm.h>
#include <linux/clockchips.h>
#include <linux/random.h>
#include <linux/user-return-notifier.h>
#include <linux/dmi.h>
#include <linux/utsname.h>
#include <linux/stackprotector.h>
#include <linux/tick.h>
#include <linux/cpuidle.h>
#include <trace/events/power.h>
#include <linux/hw_breakpoint.h>
#include <asm/cpu.h>
#include <asm/apic.h>
#include <asm/syscalls.h>
#include <asm/idle.h>
#include <asm/uaccess.h>
#include <asm/i387.h>
#include <asm/fpu-internal.h>
#include <asm/debugreg.h>
#include <asm/nmi.h>

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define MWAIT_INFO   0x05
 
#define MWAIT_ECX_EXTENDED_INFO   0x01
 
#define MWAIT_EDX_C1   0xf0
 

Functions

 DEFINE_PER_CPU_SHARED_ALIGNED (struct tss_struct, init_tss)
 
 EXPORT_SYMBOL_GPL (task_xstate_cachep)
 
int arch_dup_task_struct (struct task_struct *dst, struct task_struct *src)
 
void free_thread_xstate (struct task_struct *tsk)
 
void arch_release_task_struct (struct task_struct *tsk)
 
void arch_task_cache_init (void)
 
void exit_thread (void)
 
void show_regs_common (void)
 
void flush_thread (void)
 
void disable_TSC (void)
 
int get_tsc_mode (unsigned long adr)
 
int set_tsc_mode (unsigned int val)
 
void __switch_to_xtra (struct task_struct *prev_p, struct task_struct *next_p, struct tss_struct *tss)
 
int sys_fork (struct pt_regs *regs)
 
int sys_vfork (struct pt_regs *regs)
 
long sys_clone (unsigned long clone_flags, unsigned long newsp, void __user *parent_tid, void __user *child_tid, struct pt_regs *regs)
 
 EXPORT_SYMBOL (boot_option_idle_override)
 
void cpu_idle (void)
 
void default_idle (void)
 
bool set_pm_idle_to_default (void)
 
void stop_this_cpu (void *dummy)
 
int mwait_usable (const struct cpuinfo_x86 *c)
 
 EXPORT_SYMBOL (amd_e400_c1e_detected)
 
void amd_e400_remove_cpu (int cpu)
 
void __cpuinit select_idle_routine (const struct cpuinfo_x86 *c)
 
void __init init_amd_e400_c1e_mask (void)
 
 early_param ("idle", idle_setup)
 
unsigned long arch_align_stack (unsigned long sp)
 
unsigned long arch_randomize_brk (struct mm_struct *mm)
 

Variables

struct kmem_cachetask_xstate_cachep
 
unsigned long boot_option_idle_override = IDLE_NO_OVERRIDE
 
void(* pm_idle )(void)
 
bool amd_e400_c1e_detected
 

Macro Definition Documentation

#define MWAIT_ECX_EXTENDED_INFO   0x01

Definition at line 514 of file process.c.

#define MWAIT_EDX_C1   0xf0

Definition at line 515 of file process.c.

#define MWAIT_INFO   0x05

Definition at line 513 of file process.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 1 of file process.c.

Function Documentation

void __switch_to_xtra ( struct task_struct prev_p,
struct task_struct next_p,
struct tss_struct tss 
)

Definition at line 221 of file process.c.

void amd_e400_remove_cpu ( int  cpu)

Definition at line 552 of file process.c.

unsigned long arch_align_stack ( unsigned long  sp)

Definition at line 676 of file process.c.

int arch_dup_task_struct ( struct task_struct dst,
struct task_struct src 
)

Definition at line 65 of file process.c.

unsigned long arch_randomize_brk ( struct mm_struct mm)

Definition at line 683 of file process.c.

void arch_release_task_struct ( struct task_struct tsk)

Definition at line 85 of file process.c.

void arch_task_cache_init ( void  )

Definition at line 90 of file process.c.

void cpu_idle ( void  )

Definition at line 351 of file process.c.

void default_idle ( void  )

Definition at line 411 of file process.c.

DEFINE_PER_CPU_SHARED_ALIGNED ( struct tss_struct  ,
init_tss   
)
void disable_TSC ( void  )

Definition at line 168 of file process.c.

early_param ( "idle"  ,
idle_setup   
)
void exit_thread ( void  )
inline

Definition at line 101 of file process.c.

EXPORT_SYMBOL ( boot_option_idle_override  )
EXPORT_SYMBOL ( amd_e400_c1e_detected  )
EXPORT_SYMBOL_GPL ( task_xstate_cachep  )
void flush_thread ( void  )

Definition at line 148 of file process.c.

void free_thread_xstate ( struct task_struct tsk)

Definition at line 80 of file process.c.

int get_tsc_mode ( unsigned long  adr)

Definition at line 197 of file process.c.

void __init init_amd_e400_c1e_mask ( void  )

Definition at line 632 of file process.c.

int mwait_usable ( const struct cpuinfo_x86 c)

Definition at line 517 of file process.c.

void __cpuinit select_idle_routine ( const struct cpuinfo_x86 c)

Definition at line 608 of file process.c.

bool set_pm_idle_to_default ( void  )

Definition at line 440 of file process.c.

int set_tsc_mode ( unsigned int  val)

Definition at line 209 of file process.c.

void show_regs_common ( void  )

Definition at line 124 of file process.c.

void stop_this_cpu ( void dummy)

stop_this_cpu - Callback to stop a CPU. : Callback context (ignored).

Definition at line 448 of file process.c.

long sys_clone ( unsigned long  clone_flags,
unsigned long  newsp,
void __user parent_tid,
void __user child_tid,
struct pt_regs regs 
)

Definition at line 287 of file process.c.

int sys_fork ( struct pt_regs regs)

Definition at line 265 of file process.c.

int sys_vfork ( struct pt_regs regs)

Definition at line 280 of file process.c.

Variable Documentation

bool amd_e400_c1e_detected

Definition at line 547 of file process.c.

unsigned long boot_option_idle_override = IDLE_NO_OVERRIDE

Definition at line 298 of file process.c.

void(* pm_idle)(void)
default

Definition at line 304 of file process.c.

struct kmem_cache* task_xstate_cachep

Definition at line 58 of file process.c.