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

Go to the source code of this file.

Functions

 LIST_HEAD (cpuidle_governors)
 
int cpuidle_switch_governor (struct cpuidle_governor *gov)
 
int cpuidle_register_governor (struct cpuidle_governor *gov)
 
void cpuidle_unregister_governor (struct cpuidle_governor *gov)
 

Variables

struct cpuidle_governorcpuidle_curr_governor
 

Function Documentation

int cpuidle_register_governor ( struct cpuidle_governor gov)

cpuidle_register_governor - registers a governor : the governor

Definition at line 77 of file governor.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_unregister_governor ( struct cpuidle_governor gov)

cpuidle_unregister_governor - unregisters a governor : the governor

Definition at line 127 of file governor.c.

LIST_HEAD ( cpuidle_governors  )

Variable Documentation

struct cpuidle_governor* cpuidle_curr_governor

Definition at line 18 of file governor.c.