Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
pseries_energy.c File Reference
#include <linux/module.h>
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/seq_file.h>
#include <linux/device.h>
#include <linux/cpu.h>
#include <linux/of.h>
#include <asm/cputhreads.h>
#include <asm/page.h>
#include <asm/hvcall.h>

Go to the source code of this file.

Macros

#define MODULE_VERS   "1.0"
 
#define MODULE_NAME   "pseries_energy"
 
#define FLAGS_MODE1   0x004E200000080E01
 
#define FLAGS_MODE2   0x004E200000080401
 
#define FLAGS_ACTIVATE   0x100
 

Functions

 module_init (pseries_energy_init)
 
 module_exit (pseries_energy_cleanup)
 
 MODULE_DESCRIPTION ("Driver for pSeries platform energy management")
 
 MODULE_AUTHOR ("Vaidyanathan Srinivasan")
 
 MODULE_LICENSE ("GPL")
 

Variables

struct device_attribute attr_cpu_activate_hint_list
 
struct device_attribute attr_cpu_deactivate_hint_list
 
struct device_attribute attr_percpu_activate_hint
 
struct device_attribute attr_percpu_deactivate_hint
 

Macro Definition Documentation

#define FLAGS_ACTIVATE   0x100

Definition at line 146 of file pseries_energy.c.

#define FLAGS_MODE1   0x004E200000080E01

Definition at line 144 of file pseries_energy.c.

#define FLAGS_MODE2   0x004E200000080401

Definition at line 145 of file pseries_energy.c.

#define MODULE_NAME   "pseries_energy"

Definition at line 27 of file pseries_energy.c.

#define MODULE_VERS   "1.0"

Definition at line 26 of file pseries_energy.c.

Function Documentation

MODULE_AUTHOR ( "Vaidyanathan Srinivasan"  )
MODULE_DESCRIPTION ( "Driver for pSeries platform energy management"  )
module_exit ( pseries_energy_cleanup  )
module_init ( pseries_energy_init  )
MODULE_LICENSE ( "GPL"  )

Variable Documentation

struct device_attribute attr_cpu_activate_hint_list
Initial value:
=
__ATTR(pseries_activate_hint_list, 0444,
cpu_activate_hint_list_show, NULL)

Definition at line 244 of file pseries_energy.c.

struct device_attribute attr_cpu_deactivate_hint_list
Initial value:
=
__ATTR(pseries_deactivate_hint_list, 0444,
cpu_deactivate_hint_list_show, NULL)

Definition at line 248 of file pseries_energy.c.

struct device_attribute attr_percpu_activate_hint
Initial value:
=
__ATTR(pseries_activate_hint, 0444,
percpu_activate_hint_show, NULL)

Definition at line 252 of file pseries_energy.c.

struct device_attribute attr_percpu_deactivate_hint
Initial value:
=
__ATTR(pseries_deactivate_hint, 0444,
percpu_deactivate_hint_show, NULL)

Definition at line 256 of file pseries_energy.c.