Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
devfreq.h File Reference
#include <linux/device.h>
#include <linux/notifier.h>
#include <linux/opp.h>

Go to the source code of this file.

Data Structures

struct  devfreq_dev_status
 
struct  devfreq_dev_profile
 
struct  devfreq_governor
 
struct  devfreq
 

Macros

#define DEVFREQ_NAME_LEN   16
 
#define DEVFREQ_FLAG_LEAST_UPPER_BOUND   0x1
 

Governor's name

struct devfreq_governor - Devfreq policy governor

Returns desired operating frequency for the device. Basically, get_target_freq will run devfreq_dev_profile.get_dev_status() to get the status of the device (load = busy_time / total_time). If no_central_polling is set, this callback is called only with update_devfreq() notified by OPP. Called when the devfreq is being attached to a device Called when the devfreq is being removed from a device. Governor should stop any internal routines before return because related data may be freed after exit(). Do not use devfreq's central polling mechanism. When this is set, devfreq will not call get_target_freq with devfreq_monitor(). However, devfreq will call get_target_freq with devfreq_update() notified by OPP framework.

Note that the callbacks are called with devfreq->lock locked by devfreq.

#define devfreq_powersave   NULL
 
#define devfreq_performance   NULL
 
#define devfreq_userspace   NULL
 
#define devfreq_simple_ondemand   NULL
 

Macro Definition Documentation

#define DEVFREQ_FLAG_LEAST_UPPER_BOUND   0x1

Definition at line 53 of file devfreq.h.

#define DEVFREQ_NAME_LEN   16

Definition at line 20 of file devfreq.h.

#define devfreq_performance   NULL

Definition at line 247 of file devfreq.h.

#define devfreq_powersave   NULL

Definition at line 246 of file devfreq.h.

#define devfreq_simple_ondemand   NULL

Definition at line 249 of file devfreq.h.

#define devfreq_userspace   NULL

Definition at line 248 of file devfreq.h.