Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
cpufreq_stats.c File Reference
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/cpu.h>
#include <linux/sysfs.h>
#include <linux/cpufreq.h>
#include <linux/module.h>
#include <linux/jiffies.h>
#include <linux/percpu.h>
#include <linux/kobject.h>
#include <linux/spinlock.h>
#include <linux/notifier.h>
#include <asm/cputime.h>

Go to the source code of this file.

Data Structures

struct  cpufreq_stats
 
struct  cpufreq_stats_attribute
 

Macros

#define CPUFREQ_STATDEVICE_ATTR(_name, _mode, _show)
 

Functions

 CPUFREQ_STATDEVICE_ATTR (total_trans, 0444, show_total_trans)
 
 CPUFREQ_STATDEVICE_ATTR (time_in_state, 0444, show_time_in_state)
 
 MODULE_AUTHOR ("Zou Nan hai <[email protected]>")
 
 MODULE_DESCRIPTION ("'cpufreq_stats' - A driver to export cpufreq stats ""through sysfs filesystem")
 
 MODULE_LICENSE ("GPL")
 
 module_init (cpufreq_stats_init)
 
 module_exit (cpufreq_stats_exit)
 

Macro Definition Documentation

#define CPUFREQ_STATDEVICE_ATTR (   _name,
  _mode,
  _show 
)
Value:
static struct freq_attr _attr_##_name = {\
.attr = {.name = __stringify(_name), .mode = _mode, }, \
.show = _show,\
};

Definition at line 27 of file cpufreq_stats.c.

Function Documentation

CPUFREQ_STATDEVICE_ATTR ( total_trans  ,
0444  ,
show_total_trans   
)
CPUFREQ_STATDEVICE_ATTR ( time_in_state  ,
0444  ,
show_time_in_state   
)
MODULE_AUTHOR ( "Zou Nan hai <[email protected]>"  )
MODULE_DESCRIPTION ( "'cpufreq_stats' - A driver to export cpufreq stats ""through sysfs filesystem"  )
module_exit ( cpufreq_stats_exit  )
module_init ( cpufreq_stats_init  )
MODULE_LICENSE ( "GPL"  )