Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
acpi-cpufreq.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/smp.h>
#include <linux/sched.h>
#include <linux/cpufreq.h>
#include <linux/compiler.h>
#include <linux/dmi.h>
#include <linux/slab.h>
#include <linux/acpi.h>
#include <linux/io.h>
#include <linux/delay.h>
#include <linux/uaccess.h>
#include <acpi/processor.h>
#include <asm/msr.h>
#include <asm/processor.h>
#include <asm/cpufeature.h>
#include "mperf.h"

Go to the source code of this file.

Data Structures

struct  acpi_cpufreq_data
 
struct  msr_addr
 
struct  io_addr
 
struct  drv_cmd
 

Macros

#define PFX   "acpi-cpufreq: "
 
#define INTEL_MSR_RANGE   (0xffff)
 
#define AMD_MSR_RANGE   (0x7)
 
#define MSR_K7_HWCR_CPB_DIS   (1ULL << 25)
 

Enumerations

enum  { UNDEFINED_CAPABLE = 0, SYSTEM_INTEL_MSR_CAPABLE, SYSTEM_AMD_MSR_CAPABLE, SYSTEM_IO_CAPABLE }
 

Functions

 MODULE_AUTHOR ("Paul Diefenbaugh, Dominik Brodowski")
 
 MODULE_DESCRIPTION ("ACPI Processor P-States Driver")
 
 MODULE_LICENSE ("GPL")
 
 module_param (acpi_pstate_strict, uint, 0644)
 
 MODULE_PARM_DESC (acpi_pstate_strict,"value 0 or non-zero. non-zero -> strict ACPI checks are ""performed during frequency changes.")
 
 late_initcall (acpi_cpufreq_init)
 
 module_exit (acpi_cpufreq_exit)
 
 MODULE_ALIAS ("acpi")
 

Macro Definition Documentation

#define AMD_MSR_RANGE   (0x7)

Definition at line 64 of file acpi-cpufreq.c.

#define INTEL_MSR_RANGE   (0xffff)

Definition at line 63 of file acpi-cpufreq.c.

#define MSR_K7_HWCR_CPB_DIS   (1ULL << 25)

Definition at line 66 of file acpi-cpufreq.c.

#define PFX   "acpi-cpufreq: "

Definition at line 54 of file acpi-cpufreq.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
UNDEFINED_CAPABLE 
SYSTEM_INTEL_MSR_CAPABLE 
SYSTEM_AMD_MSR_CAPABLE 
SYSTEM_IO_CAPABLE 

Definition at line 56 of file acpi-cpufreq.c.

Function Documentation

late_initcall ( acpi_cpufreq_init  )
MODULE_ALIAS ( "acpi"  )
MODULE_AUTHOR ( "Paul  Diefenbaugh,
Dominik Brodowski"   
)
MODULE_DESCRIPTION ( "ACPI Processor P-States Driver"  )
module_exit ( acpi_cpufreq_exit  )
MODULE_LICENSE ( "GPL"  )
module_param ( acpi_pstate_strict  ,
uint  ,
0644   
)
MODULE_PARM_DESC ( acpi_pstate_strict  ,
"value 0 or non-zero. non-zero -> strict ACPI checks are ""performed during frequency changes."   
)