Linux Kernel
3.7.1
|
#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) |
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.