博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
linux Devfreq framwork
阅读量:3624 次
发布时间:2019-05-21

本文共 3577 字,大约阅读时间需要 11 分钟。

drivers/devfreq/devfreq.c
devfreq_list
devfreq_list_lock
find_device_devfreq() - find devfreq struct using device pointer.
devfreq_get_freq_level() - Lookup freq_table for the frequency.
struct devfreq:
time_in_state: statistics for how many time spent on the specific state.
last_stat_updated: record in which time the state being updated.
total_trans: total number of devfreq transitions.
trans_table: it is more like a two-dimensional array, which record devfreq transitions of from which old state to which target state.
something like:
0...maxstate,0...maxstate ... 0...maxstate
0         1              maxstate
min_freq:minimum frequency
max_freq:maximum frequency
work:the delayed work struct variable used for polling
stop_polling:devfreq polling status of a device, which will be used for function devfreq_monitor_suspend/resume function to indicate if the devfreq have been stop polling, if being suspend then stop_polling is true which means that polling have been stoped and if stop_polling is false which means that polling have been resumed and it can be stopped again. the default value should be false.
data: private data for governors
governor_name: the name of governor used with this devfreq
governor: method how to choose frequency based on the usage, which is the devfreq using governor.
profile: device-specific devfreq profile, which the devfreq using profile
node: used as a node in devfreq_list
lock: a mutex
dev: device register by devfreq class. dev.parent is the device using devfreq
previous_freq: previously configured frequency value, which is configure as the profile' initial_freq defaultly.
nb: assign nb.notifier_call as devfreq_notifier_call
update_devfreq() - Reevaluate the device and configure frequency.
devfreq_governor:
get_target_freq: return desired operating frequency for the device.
event_handler: callback for devfreq core framework to notify events to governors. Events include per device governor init and exit, opp changes out of devfreq, suspend and resume.
devfreq_monitor() - Periodically poll devfreq objects.
devfreq_monitor_start() - Start load monitoring of devfreq instance.
devfreq_monitor_stop() - Stop load monitoring of a devfreq instance.
devfreq_monitor_suspend() - Suspend load monitoring of a devfreq instance
devfreq_monitor_resume() - Resume load monitoring of a devfreq instance
devfreq_interval_update() - Update device devfreq monitoring interval
devfreq_notifier_call() - Notify that the device frequency requirements
devfreq_notifier_call() - Notify that the device frequency requirements has been changed out of devfreq framework.
_remove_devfreq() - Remove devfreq from the list and release its resources.
devfreq_dev_release() - Callback for struct device to release the device.
devfreq_add_device() - Add devfreq feature to the device
struct devfreq *devfreq_add_device(struct device *dev, struct devfreq_dev_profile *profile, const char *governor_name, void *data)
devfreq_remove_device() - Remove devfreq feature from a device.
devm_devfreq_add_device() - Resource-managed devfreq_add_device()
devm_devfreq_remove_device() - Resource-managed devfreq_remove_device()
devfreq_suspend_device() - Suspend devfreq of a device.
devfreq_resume_device() - Resume devfreq of a device.
devfreq_add_governor() - Add devfreq governor
devfreq_remove_device() - Remove devfreq feature from a device.
governor_show/governor_store/available_governors_show/cur_freq_show/target_freq_show/polling_interval_show/polling_interval_store/min_freq_store/min_freq_show/
max_freq_show/max_freq_store/available_frequencies_show/trans_stat_show
      

转载地址:http://lkuun.baihongyu.com/

你可能感兴趣的文章
python内置类 set
查看>>
python getatrra()
查看>>
thinkpython2的扑克牌系列练习最终解读
查看>>
matlab复色光夫琅禾费衍射
查看>>
Java中线程的基本操作以及Thread和Runnable两种实现的比较
查看>>
MongoDbRepository的常用AP操作和易错点
查看>>
MongDBRepository和MongDBOperator和MongTemplate的方法比较
查看>>
IntelliJ IDEA中关于Maven构建复杂的聚合工程的管理和打包问题
查看>>
错误记录关于Model 的Not a managed type: class,无法找到Model
查看>>
关于JPA中Specification接口的问题,记录一下
查看>>
IntelliJ IDEA中GIT,已经 commit and push成功,但并未 push 到远程库的问题
查看>>
关于光盘刻录,重洗的一些知识
查看>>
default_Keyword
查看>>
do_Keyword
查看>>
for_Keyword
查看>>
float_Keyword
查看>>
finally_Keyword
查看>>
final_Keyword
查看>>
enum_Keyword
查看>>
extends_Keyword
查看>>