Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
devfreq_dev_profile Struct Reference

#include <devfreq.h>

Data Fields

unsigned long initial_freq
 
unsigned int polling_ms
 
int(* target )(struct device *dev, unsigned long *freq, u32 flags)
 
int(* get_dev_status )(struct device *dev, struct devfreq_dev_status *stat)
 
void(* exit )(struct device *dev)
 

Detailed Description

struct devfreq_dev_profile - Devfreq's user device profile The operating frequency when devfreq_add_device() is called. The polling interval in ms. 0 disables polling. The device should set its operating frequency at freq or lowest-upper-than-freq value. If freq is higher than any operable frequency, set maximum. Before returning, target function should set freq at the current frequency. The "flags" parameter's possible values are explained above with "DEVFREQ_FLAG_*" macros. The device should provide the current performance status to devfreq, which is used by governors. An optional callback that is called when devfreq is removing the devfreq object due to error or from devfreq_remove_device() call. If the user has registered devfreq->nb at a notifier-head, this is the time to unregister it.

Definition at line 75 of file devfreq.h.

Field Documentation

void(* exit)(struct device *dev)

Definition at line 82 of file devfreq.h.

Definition at line 80 of file devfreq.h.

unsigned long initial_freq

Definition at line 76 of file devfreq.h.

unsigned int polling_ms

Definition at line 77 of file devfreq.h.

int(* target)(struct device *dev, unsigned long *freq, u32 flags)

Definition at line 79 of file devfreq.h.


The documentation for this struct was generated from the following file: