微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 手机设计讨论 > MTK手机平台交流 > Smart Phone Power Throttling Service Customization

Smart Phone Power Throttling Service Customization

时间:10-02 整理:3721RD 点击:

[DESCRIPTION]

For providing low Battery protectionfor sudden and unexpected system
shutdown, so that end user will prolong usage timer.
Here is brief introduction about CPU/GPU throttling behavior under low
battery status.

[SOLUTION]

power throttling Service includes 3 parts: LOW_BATTERY_PROTECT,
BATTERY_OC_PROTECT,BATTERY_PERCENT_PROTECT. please refer to
../../kernel/drivers/power/pMIC.c for detailed implement.
Take battery 15% as an example, feature task will register notifier
through API---register_battery_percent_notify.
Via this, check all of the task handler. like: for limiting the cpu max
freq--- mt_cpufreq.c/bat_per_protection_powerlimit.
when battery level is lower than 15%, it trigger CPU frequence to be under
1G and CPU core to less than 4.


Thereforce, you couldadjustlimited cpu rate and core number.

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top