Linux Kernel
3.7.1
|
#include <devfreq.h>
Data Fields | |
struct list_head | node |
struct mutex | lock |
struct device | dev |
struct devfreq_dev_profile * | profile |
struct devfreq_governor * | governor |
struct notifier_block | nb |
unsigned long | polling_jiffies |
unsigned long | previous_freq |
unsigned int | next_polling |
void * | data |
bool | being_removed |
unsigned long | min_freq |
unsigned long | max_freq |
struct devfreq - Device devfreq structure list node - contains the devices with devfreq that have been registered. a mutex to protect accessing devfreq. device registered by devfreq class. dev.parent is the device using devfreq. device-specific devfreq profile method how to choose frequency based on the usage. notifier block used to notify devfreq object that it should reevaluate operable frequencies. Devfreq users may use devfreq.nb to the corresponding register notifier call chain. interval in jiffies. previously configured frequency value. the number of remaining jiffies to poll with "devfreq_monitor" executions to reevaluate frequency/voltage of the device. Set by profile's polling_ms interval. Private data of the governor. The devfreq framework does not touch this. a flag to mark that this object is being removed in order to prevent trying to remove the object multiple times. Limit minimum frequency requested by user (0: none) Limit maximum frequency requested by user (0: none)
This structure stores the devfreq information for a give device.
Note that when a governor accesses entries in struct devfreq in its functions except for the context of callbacks defined in struct devfreq_governor, the governor should protect its access with the struct mutex lock in struct devfreq. A governor may use this mutex to protect its own private data in void *data as well.
struct devfreq_governor* governor |
struct devfreq_dev_profile* profile |