Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
cpufreq.c File Reference
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include "cpufreq.h"
#include "sysfs.h"

Go to the source code of this file.

Functions

int cpufreq_cpu_exists (unsigned int cpu)
 
unsigned long cpufreq_get_freq_kernel (unsigned int cpu)
 
unsigned long cpufreq_get_freq_hardware (unsigned int cpu)
 
unsigned long cpufreq_get_transition_latency (unsigned int cpu)
 
int cpufreq_get_hardware_limits (unsigned int cpu, unsigned long *min, unsigned long *max)
 
charcpufreq_get_driver (unsigned int cpu)
 
void cpufreq_put_driver (char *ptr)
 
struct cpufreq_policycpufreq_get_policy (unsigned int cpu)
 
void cpufreq_put_policy (struct cpufreq_policy *policy)
 
struct
cpufreq_available_governors
cpufreq_get_available_governors (unsigned int cpu)
 
void cpufreq_put_available_governors (struct cpufreq_available_governors *any)
 
struct
cpufreq_available_frequencies
cpufreq_get_available_frequencies (unsigned int cpu)
 
void cpufreq_put_available_frequencies (struct cpufreq_available_frequencies *any)
 
struct cpufreq_affected_cpuscpufreq_get_affected_cpus (unsigned int cpu)
 
void cpufreq_put_affected_cpus (struct cpufreq_affected_cpus *any)
 
struct cpufreq_affected_cpuscpufreq_get_related_cpus (unsigned int cpu)
 
void cpufreq_put_related_cpus (struct cpufreq_affected_cpus *any)
 
int cpufreq_set_policy (unsigned int cpu, struct cpufreq_policy *policy)
 
int cpufreq_modify_policy_min (unsigned int cpu, unsigned long min_freq)
 
int cpufreq_modify_policy_max (unsigned int cpu, unsigned long max_freq)
 
int cpufreq_modify_policy_governor (unsigned int cpu, char *governor)
 
int cpufreq_set_frequency (unsigned int cpu, unsigned long target_frequency)
 
struct cpufreq_statscpufreq_get_stats (unsigned int cpu, unsigned long long *total_time)
 
void cpufreq_put_stats (struct cpufreq_stats *any)
 
unsigned long cpufreq_get_transitions (unsigned int cpu)
 

Function Documentation

int cpufreq_cpu_exists ( unsigned int  cpu)

Definition at line 16 of file cpufreq.c.

struct cpufreq_affected_cpus* cpufreq_get_affected_cpus ( unsigned int  cpu)
read

Definition at line 118 of file cpufreq.c.

struct cpufreq_available_frequencies* cpufreq_get_available_frequencies ( unsigned int  cpu)
read

Definition at line 97 of file cpufreq.c.

struct cpufreq_available_governors* cpufreq_get_available_governors ( unsigned int  cpu)
read

Definition at line 72 of file cpufreq.c.

char* cpufreq_get_driver ( unsigned int  cpu)

Definition at line 45 of file cpufreq.c.

unsigned long cpufreq_get_freq_hardware ( unsigned int  cpu)

Definition at line 26 of file cpufreq.c.

unsigned long cpufreq_get_freq_kernel ( unsigned int  cpu)

Definition at line 21 of file cpufreq.c.

int cpufreq_get_hardware_limits ( unsigned int  cpu,
unsigned long min,
unsigned long max 
)

Definition at line 36 of file cpufreq.c.

struct cpufreq_policy* cpufreq_get_policy ( unsigned int  cpu)
read

Definition at line 57 of file cpufreq.c.

struct cpufreq_affected_cpus* cpufreq_get_related_cpus ( unsigned int  cpu)
read

Definition at line 139 of file cpufreq.c.

struct cpufreq_stats* cpufreq_get_stats ( unsigned int  cpu,
unsigned long long total_time 
)
read

Definition at line 184 of file cpufreq.c.

unsigned long cpufreq_get_transition_latency ( unsigned int  cpu)

Definition at line 31 of file cpufreq.c.

unsigned long cpufreq_get_transitions ( unsigned int  cpu)

Definition at line 205 of file cpufreq.c.

int cpufreq_modify_policy_governor ( unsigned int  cpu,
char governor 
)

Definition at line 171 of file cpufreq.c.

int cpufreq_modify_policy_max ( unsigned int  cpu,
unsigned long  max_freq 
)

Definition at line 165 of file cpufreq.c.

int cpufreq_modify_policy_min ( unsigned int  cpu,
unsigned long  min_freq 
)

Definition at line 159 of file cpufreq.c.

void cpufreq_put_affected_cpus ( struct cpufreq_affected_cpus any)

Definition at line 123 of file cpufreq.c.

void cpufreq_put_available_frequencies ( struct cpufreq_available_frequencies any)

Definition at line 102 of file cpufreq.c.

void cpufreq_put_available_governors ( struct cpufreq_available_governors any)

Definition at line 78 of file cpufreq.c.

void cpufreq_put_driver ( char ptr)

Definition at line 50 of file cpufreq.c.

void cpufreq_put_policy ( struct cpufreq_policy policy)

Definition at line 62 of file cpufreq.c.

void cpufreq_put_related_cpus ( struct cpufreq_affected_cpus any)

Definition at line 144 of file cpufreq.c.

void cpufreq_put_stats ( struct cpufreq_stats any)

Definition at line 190 of file cpufreq.c.

int cpufreq_set_frequency ( unsigned int  cpu,
unsigned long  target_frequency 
)

Definition at line 179 of file cpufreq.c.

int cpufreq_set_policy ( unsigned int  cpu,
struct cpufreq_policy policy 
)

Definition at line 150 of file cpufreq.c.