Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
fair.c File Reference
#include <linux/latencytop.h>
#include <linux/sched.h>
#include <linux/cpumask.h>
#include <linux/slab.h>
#include <linux/profile.h>
#include <linux/interrupt.h>
#include <trace/events/sched.h>
#include "sched.h"

Go to the source code of this file.

Macros

#define SET_SYSCTL(name)   (sysctl_##name = (factor) * normalized_sysctl_##name)
 
#define WMULT_CONST   (1UL << 32)
 
#define WMULT_SHIFT   32
 
#define SRR(x, y)   (((x) + (1UL << ((y) - 1))) >> (y))
 
#define entity_is_task(se)   1
 
#define for_each_sched_entity(se)   for (; se; se = NULL)
 
#define for_each_leaf_cfs_rq(rq, cfs_rq)   for (cfs_rq = &rq->cfs; cfs_rq; cfs_rq = NULL)
 

Functions

void sched_init_granularity (void)
 
struct sched_entity__pick_first_entity (struct cfs_rq *cfs_rq)
 
void init_cfs_bandwidth (struct cfs_bandwidth *cfs_b)
 
void init_cfs_rq (struct cfs_rq *cfs_rq)
 
void free_fair_sched_group (struct task_group *tg)
 
int alloc_fair_sched_group (struct task_group *tg, struct task_group *parent)
 
void unregister_fair_sched_group (struct task_group *tg, int cpu)
 
__init void init_sched_fair_class (void)
 

Variables

unsigned int sysctl_sched_latency = 6000000ULL
 
unsigned int normalized_sysctl_sched_latency = 6000000ULL
 
enum sched_tunable_scaling sysctl_sched_tunable_scaling = SCHED_TUNABLESCALING_LOG
 
unsigned int sysctl_sched_min_granularity = 750000ULL
 
unsigned int normalized_sysctl_sched_min_granularity = 750000ULL
 
unsigned int
sysctl_sched_child_runs_first 
__read_mostly
 
unsigned int sysctl_sched_wakeup_granularity = 1000000UL
 
unsigned int normalized_sysctl_sched_wakeup_granularity = 1000000UL
 
const_debug unsigned int sysctl_sched_migration_cost = 500000UL
 
unsigned int __read_mostly sysctl_sched_shares_window = 10000000UL
 
struct sched_class fair_sched_class
 

Macro Definition Documentation

#define entity_is_task (   se)    1

Definition at line 366 of file fair.c.

#define for_each_leaf_cfs_rq (   rq,
  cfs_rq 
)    for (cfs_rq = &rq->cfs; cfs_rq; cfs_rq = NULL)

Definition at line 398 of file fair.c.

#define for_each_sched_entity (   se)    for (; se; se = NULL)

Definition at line 368 of file fair.c.

#define SET_SYSCTL (   name)    (sysctl_##name = (factor) * normalized_sysctl_##name)
#define SRR (   x,
  y 
)    (((x) + (1UL << ((y) - 1))) >> (y))

Definition at line 171 of file fair.c.

#define WMULT_CONST   (1UL << 32)

Definition at line 163 of file fair.c.

#define WMULT_SHIFT   32

Definition at line 166 of file fair.c.

Function Documentation

struct sched_entity* __pick_first_entity ( struct cfs_rq cfs_rq)
read

Definition at line 526 of file fair.c.

int alloc_fair_sched_group ( struct task_group *  tg,
struct task_group *  parent 
)

Definition at line 5280 of file fair.c.

void free_fair_sched_group ( struct task_group *  tg)

Definition at line 5278 of file fair.c.

void init_cfs_bandwidth ( struct cfs_bandwidth cfs_b)

Definition at line 2098 of file fair.c.

void init_cfs_rq ( struct cfs_rq cfs_rq)

Definition at line 5088 of file fair.c.

__init void init_sched_fair_class ( void  )

Definition at line 5356 of file fair.c.

void sched_init_granularity ( void  )

Definition at line 155 of file fair.c.

void unregister_fair_sched_group ( struct task_group *  tg,
int  cpu 
)

Definition at line 5285 of file fair.c.

Variable Documentation

unsigned int sysctl_sched_child_runs_first __read_mostly

Definition at line 77 of file fair.c.

struct sched_class fair_sched_class

Definition at line 216 of file fair.c.

unsigned int normalized_sysctl_sched_latency = 6000000ULL

Definition at line 47 of file fair.c.

unsigned int normalized_sysctl_sched_min_granularity = 750000ULL

Definition at line 66 of file fair.c.

unsigned int normalized_sysctl_sched_wakeup_granularity = 1000000UL

Definition at line 88 of file fair.c.

unsigned int sysctl_sched_latency = 6000000ULL

Definition at line 46 of file fair.c.

const_debug unsigned int sysctl_sched_migration_cost = 500000UL

Definition at line 90 of file fair.c.

unsigned int sysctl_sched_min_granularity = 750000ULL

Definition at line 65 of file fair.c.

unsigned int __read_mostly sysctl_sched_shares_window = 10000000UL

Definition at line 97 of file fair.c.

enum sched_tunable_scaling sysctl_sched_tunable_scaling = SCHED_TUNABLESCALING_LOG

Definition at line 59 of file fair.c.

unsigned int sysctl_sched_wakeup_granularity = 1000000UL

Definition at line 87 of file fair.c.