driver/devfreq: DVFS framework for devices
This commit introduces a devfreq framework to manage device frequency
scaling. The framework includes the following features:
1.devfreq governor
- provide governor ops, including init, start, stop, exit
- default governor, performance & powersave
- customized governor, device can provide governor when register
2.runtime register and unregister
- device can runtime register & unregister, search by name
3.suspend and resume
- suspend and resume frequency scaling
4.notify
- register & unregister notifier callback, notify frequency changes
5.qos support
- simplified QoS, manage multiple freq range request
- including init, add/remove/update request, get value
Signed-off-by: guanyi <guanyi@xiaomi.com>
2025-04-02 14:19:24 +08:00
|
|
|
#
|
|
|
|
|
# For a description of the syntax of this configuration file,
|
|
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
config DEVFREQ
|
|
|
|
|
bool "devfreq"
|
|
|
|
|
default n
|
|
|
|
|
---help---
|
|
|
|
|
devfreq framework, dynamic voltage frequency scaling(DVFS)
|
|
|
|
|
for device
|
|
|
|
|
|
|
|
|
|
if DEVFREQ
|
|
|
|
|
|
2025-05-16 16:07:54 +08:00
|
|
|
config DEVFREQ_PROCFS
|
|
|
|
|
bool "devfreq_procfs"
|
|
|
|
|
default n
|
|
|
|
|
depends on FS_PROCFS
|
|
|
|
|
select FS_PROCFS_REGISTER
|
|
|
|
|
---help---
|
|
|
|
|
devfreq procfs support
|
|
|
|
|
|
|
|
|
|
config DEVFREQ_PROCFS_QOS
|
|
|
|
|
bool "devfreq_procfs_qos"
|
|
|
|
|
default n
|
|
|
|
|
depends on DEVFREQ_PROCFS
|
|
|
|
|
---help---
|
|
|
|
|
devfreq procfs show qos requests and their callers
|
|
|
|
|
|
2026-08-08 11:37:55 +08:00
|
|
|
config DEVFREQ_GOV_ONDEMAND
|
|
|
|
|
bool "devfreq_gov_ondemand"
|
|
|
|
|
default n
|
|
|
|
|
depends on !SCHED_CPULOAD_NONE
|
|
|
|
|
---help---
|
|
|
|
|
devfreq_ondemand governor
|
|
|
|
|
|
|
|
|
|
if DEVFREQ_GOV_ONDEMAND
|
|
|
|
|
|
|
|
|
|
config DEVFREQ_SAMPLE_RATE
|
|
|
|
|
int "the default sample rate (us) to get the cpuload"
|
|
|
|
|
default 1000000
|
|
|
|
|
---help---
|
|
|
|
|
Ondemand sample rate
|
|
|
|
|
|
|
|
|
|
config DEVFREQ_LOAD_THRESHOLD
|
|
|
|
|
int "the default cpu load threshold up to max cpu freq"
|
|
|
|
|
default 80
|
|
|
|
|
---help---
|
|
|
|
|
Ondemand cpu load threshold
|
|
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
driver/devfreq: DVFS framework for devices
This commit introduces a devfreq framework to manage device frequency
scaling. The framework includes the following features:
1.devfreq governor
- provide governor ops, including init, start, stop, exit
- default governor, performance & powersave
- customized governor, device can provide governor when register
2.runtime register and unregister
- device can runtime register & unregister, search by name
3.suspend and resume
- suspend and resume frequency scaling
4.notify
- register & unregister notifier callback, notify frequency changes
5.qos support
- simplified QoS, manage multiple freq range request
- including init, add/remove/update request, get value
Signed-off-by: guanyi <guanyi@xiaomi.com>
2025-04-02 14:19:24 +08:00
|
|
|
endif
|