Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
helpers.h File Reference
#include <libintl.h>
#include <locale.h>
#include "helpers/bitmask.h"

Go to the source code of this file.

Data Structures

struct  cpupower_cpu_info
 
struct  cpupower_topology
 

Macros

#define _(String)   String
 
#define N_(String)   String
 
#define CPUPOWER_CAP_INV_TSC   0x00000001
 
#define CPUPOWER_CAP_APERF   0x00000002
 
#define CPUPOWER_CAP_AMD_CBP   0x00000004
 
#define CPUPOWER_CAP_PERF_BIAS   0x00000008
 
#define CPUPOWER_CAP_HAS_TURBO_RATIO   0x00000010
 
#define CPUPOWER_CAP_IS_SNB   0x00000020
 
#define CPUPOWER_CAP_INTEL_IDA   0x00000040
 
#define MAX_HW_PSTATES   10
 

Enumerations

enum  cpupower_cpu_vendor { X86_VENDOR_UNKNOWN = 0, X86_VENDOR_INTEL, X86_VENDOR_AMD, X86_VENDOR_MAX }
 

Functions

int get_cpu_info (unsigned int cpu, struct cpupower_cpu_info *cpu_info)
 
int get_cpu_topology (struct cpupower_topology *cpu_top)
 
void cpu_topology_release (struct cpupower_topology cpu_top)
 

Variables

int run_as_root
 
struct bitmaskcpus_chosen
 
int be_verbose
 
struct cpupower_cpu_info cpupower_cpu_info
 

Macro Definition Documentation

#define _ (   String)    String

Definition at line 29 of file helpers.h.

#define CPUPOWER_CAP_AMD_CBP   0x00000004

Definition at line 66 of file helpers.h.

#define CPUPOWER_CAP_APERF   0x00000002

Definition at line 65 of file helpers.h.

#define CPUPOWER_CAP_HAS_TURBO_RATIO   0x00000010

Definition at line 68 of file helpers.h.

#define CPUPOWER_CAP_INTEL_IDA   0x00000040

Definition at line 70 of file helpers.h.

#define CPUPOWER_CAP_INV_TSC   0x00000001

Definition at line 64 of file helpers.h.

#define CPUPOWER_CAP_IS_SNB   0x00000020

Definition at line 69 of file helpers.h.

#define CPUPOWER_CAP_PERF_BIAS   0x00000008

Definition at line 67 of file helpers.h.

#define MAX_HW_PSTATES   10

Definition at line 72 of file helpers.h.

#define N_ (   String)    String

Definition at line 30 of file helpers.h.

Enumeration Type Documentation

Enumerator:
X86_VENDOR_UNKNOWN 
X86_VENDOR_INTEL 
X86_VENDOR_AMD 
X86_VENDOR_MAX 

Definition at line 61 of file helpers.h.

Function Documentation

void cpu_topology_release ( struct cpupower_topology  cpu_top)

Definition at line 108 of file topology.c.

int get_cpu_info ( unsigned int  cpu,
struct cpupower_cpu_info cpu_info 
)

Definition at line 45 of file cpuid.c.

int get_cpu_topology ( struct cpupower_topology cpu_top)

Definition at line 74 of file topology.c.

Variable Documentation

int be_verbose

Definition at line 35 of file cpupower.c.

struct bitmask* cpus_chosen

Definition at line 38 of file cpupower.c.

int run_as_root

Definition at line 36 of file cpupower.c.