Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
cpufreq_ondemand.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/cpufreq.h>
#include <linux/cpu.h>
#include <linux/jiffies.h>
#include <linux/kernel_stat.h>
#include <linux/mutex.h>
#include <linux/hrtimer.h>
#include <linux/tick.h>
#include <linux/ktime.h>
#include <linux/sched.h>

Go to the source code of this file.

Data Structures

struct  cpu_dbs_info_s
 
struct  dbs_tuners
 

Macros

#define DEF_FREQUENCY_DOWN_DIFFERENTIAL   (10)
 
#define DEF_FREQUENCY_UP_THRESHOLD   (80)
 
#define DEF_SAMPLING_DOWN_FACTOR   (1)
 
#define MAX_SAMPLING_DOWN_FACTOR   (100000)
 
#define MICRO_FREQUENCY_DOWN_DIFFERENTIAL   (3)
 
#define MICRO_FREQUENCY_UP_THRESHOLD   (95)
 
#define MICRO_FREQUENCY_MIN_SAMPLE_RATE   (10000)
 
#define MIN_FREQUENCY_UP_THRESHOLD   (11)
 
#define MAX_FREQUENCY_UP_THRESHOLD   (100)
 
#define MIN_SAMPLING_RATE_RATIO   (2)
 
#define LATENCY_MULTIPLIER   (1000)
 
#define MIN_LATENCY_MULTIPLIER   (100)
 
#define TRANSITION_LATENCY_LIMIT   (10 * 1000 * 1000)
 
#define show_one(file_name, object)
 

Enumerations

enum  { DBS_NORMAL_SAMPLE, DBS_SUB_SAMPLE }
 

Functions

 define_one_global_ro (sampling_rate_min)
 
 show_one (sampling_rate, sampling_rate)
 
 show_one (io_is_busy, io_is_busy)
 
 show_one (up_threshold, up_threshold)
 
 show_one (sampling_down_factor, sampling_down_factor)
 
 show_one (ignore_nice_load, ignore_nice)
 
 show_one (powersave_bias, powersave_bias)
 
 define_one_global_rw (sampling_rate)
 
 define_one_global_rw (io_is_busy)
 
 define_one_global_rw (up_threshold)
 
 define_one_global_rw (sampling_down_factor)
 
 define_one_global_rw (ignore_nice_load)
 
 define_one_global_rw (powersave_bias)
 
 MODULE_AUTHOR ("Venkatesh Pallipadi <[email protected]>")
 
 MODULE_AUTHOR ("Alexey Starikovskiy <[email protected]>")
 
 MODULE_DESCRIPTION ("'cpufreq_ondemand' - A dynamic cpufreq governor for ""Low Latency Frequency Transition capable processors")
 
 MODULE_LICENSE ("GPL")
 
 module_init (cpufreq_gov_dbs_init)
 
 module_exit (cpufreq_gov_dbs_exit)
 

Macro Definition Documentation

#define DEF_FREQUENCY_DOWN_DIFFERENTIAL   (10)

Definition at line 31 of file cpufreq_ondemand.c.

#define DEF_FREQUENCY_UP_THRESHOLD   (80)

Definition at line 32 of file cpufreq_ondemand.c.

#define DEF_SAMPLING_DOWN_FACTOR   (1)

Definition at line 33 of file cpufreq_ondemand.c.

#define LATENCY_MULTIPLIER   (1000)

Definition at line 55 of file cpufreq_ondemand.c.

#define MAX_FREQUENCY_UP_THRESHOLD   (100)

Definition at line 39 of file cpufreq_ondemand.c.

#define MAX_SAMPLING_DOWN_FACTOR   (100000)

Definition at line 34 of file cpufreq_ondemand.c.

#define MICRO_FREQUENCY_DOWN_DIFFERENTIAL   (3)

Definition at line 35 of file cpufreq_ondemand.c.

#define MICRO_FREQUENCY_MIN_SAMPLE_RATE   (10000)

Definition at line 37 of file cpufreq_ondemand.c.

#define MICRO_FREQUENCY_UP_THRESHOLD   (95)

Definition at line 36 of file cpufreq_ondemand.c.

#define MIN_FREQUENCY_UP_THRESHOLD   (11)

Definition at line 38 of file cpufreq_ondemand.c.

#define MIN_LATENCY_MULTIPLIER   (100)

Definition at line 56 of file cpufreq_ondemand.c.

#define MIN_SAMPLING_RATE_RATIO   (2)

Definition at line 51 of file cpufreq_ondemand.c.

#define show_one (   file_name,
  object 
)
Value:
static ssize_t show_##file_name \
(struct kobject *kobj, struct attribute *attr, char *buf) \
{ \
return sprintf(buf, "%u\n", dbs_tuners_ins.object); \
}

Definition at line 247 of file cpufreq_ondemand.c.

#define TRANSITION_LATENCY_LIMIT   (10 * 1000 * 1000)

Definition at line 57 of file cpufreq_ondemand.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
DBS_NORMAL_SAMPLE 
DBS_SUB_SAMPLE 

Definition at line 74 of file cpufreq_ondemand.c.

Function Documentation

define_one_global_ro ( sampling_rate_min  )
define_one_global_rw ( sampling_rate  )
define_one_global_rw ( io_is_busy  )
define_one_global_rw ( up_threshold  )
define_one_global_rw ( sampling_down_factor  )
define_one_global_rw ( ignore_nice_load  )
define_one_global_rw ( powersave_bias  )
MODULE_AUTHOR ( "Venkatesh Pallipadi <[email protected]>"  )
MODULE_AUTHOR ( "Alexey Starikovskiy <[email protected]>"  )
MODULE_DESCRIPTION ( "'cpufreq_ondemand' - A dynamic cpufreq governor for ""Low Latency Frequency Transition capable processors"  )
module_exit ( cpufreq_gov_dbs_exit  )
module_init ( cpufreq_gov_dbs_init  )
MODULE_LICENSE ( "GPL"  )
show_one ( sampling_rate  ,
sampling_rate   
)
show_one ( io_is_busy  ,
io_is_busy   
)
show_one ( up_threshold  ,
up_threshold   
)
show_one ( sampling_down_factor  ,
sampling_down_factor   
)
show_one ( ignore_nice_load  ,
ignore_nice   
)
show_one ( powersave_bias  ,
powersave_bias   
)