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

Go to the source code of this file.

Functions

int cpuidle_disabled (void)
 
int cpuidle_enter_state (struct cpuidle_device *dev, struct cpuidle_driver *drv, int next_state)
 
void cpuidle_install_idle_handler (void)
 
void cpuidle_uninstall_idle_handler (void)
 
int cpuidle_switch_governor (struct cpuidle_governor *gov)
 
int cpuidle_add_interface (struct device *dev)
 
void cpuidle_remove_interface (struct device *dev)
 
int cpuidle_add_state_sysfs (struct cpuidle_device *device)
 
void cpuidle_remove_state_sysfs (struct cpuidle_device *device)
 
int cpuidle_add_sysfs (struct device *dev)
 
void cpuidle_remove_sysfs (struct device *dev)
 

Variables

struct cpuidle_governorcpuidle_curr_governor
 
struct list_head cpuidle_governors
 
struct list_head cpuidle_detected_devices
 
struct mutex cpuidle_lock
 
spinlock_t cpuidle_driver_lock
 

Function Documentation

int cpuidle_add_interface ( struct device dev)

cpuidle_add_interface - add CPU global sysfs attributes

Definition at line 141 of file sysfs.c.

int cpuidle_add_state_sysfs ( struct cpuidle_device device)

cpuidle_add_driver_sysfs - adds driver-specific sysfs attributes : the target device

Definition at line 362 of file sysfs.c.

int cpuidle_add_sysfs ( struct device cpu_dev)

cpuidle_add_sysfs - creates a sysfs instance for the target device : the target device

Definition at line 411 of file sysfs.c.

int cpuidle_disabled ( void  )

Definition at line 34 of file cpuidle.c.

int cpuidle_enter_state ( struct cpuidle_device dev,
struct cpuidle_driver drv,
int  next_state 
)

cpuidle_enter_state - enter the state and update stats : cpuidle device for this cpu : cpuidle driver for this cpu : index into drv->states of the state to enter

Definition at line 100 of file cpuidle.c.

void cpuidle_install_idle_handler ( void  )

cpuidle_install_idle_handler - installs the cpuidle idle loop handler

Definition at line 173 of file cpuidle.c.

void cpuidle_remove_interface ( struct device dev)

cpuidle_remove_interface - remove CPU global sysfs attributes

Definition at line 152 of file sysfs.c.

void cpuidle_remove_state_sysfs ( struct cpuidle_device device)

cpuidle_remove_driver_sysfs - removes driver-specific sysfs attributes : the target device

Definition at line 399 of file sysfs.c.

void cpuidle_remove_sysfs ( struct device cpu_dev)

cpuidle_remove_sysfs - deletes a sysfs instance on the target device : the target device

Definition at line 429 of file sysfs.c.

int cpuidle_switch_governor ( struct cpuidle_governor gov)

cpuidle_switch_governor - changes the governor : the new target governor

NOTE: "gov" can be NULL to specify disabled Must be called with cpuidle_lock acquired.

Definition at line 44 of file governor.c.

void cpuidle_uninstall_idle_handler ( void  )

cpuidle_uninstall_idle_handler - uninstalls the cpuidle idle loop handler

Definition at line 185 of file cpuidle.c.

Variable Documentation

struct cpuidle_governor* cpuidle_curr_governor

Definition at line 18 of file governor.c.

struct list_head cpuidle_detected_devices
spinlock_t cpuidle_driver_lock
struct list_head cpuidle_governors
struct mutex cpuidle_lock