mirror of
https://github.com/apache/nuttx.git
synced 2026-08-14 08:53:15 +00:00
Add the ability to set frequency constraints via procfs write. Supported formats: echo <min>,<max> > /proc/devfreq/<name> - set frequency range echo 0,0 > /proc/devfreq/<name> - remove constraint The QoS request is bound to the devfreq device lifetime so that shell commands like echo (which open, write, close immediately) work correctly. Leading whitespace in the write buffer is skipped to handle extra writes from nsh echo (e.g. trailing newline). Also add write permissions in devfreq_stat() and a procfs_qos field in devfreq_s guarded by CONFIG_DEVFREQ_PROCFS. Signed-off-by: guanyi3 <guanyi3@xiaomi.com> (cherry picked from commit 70ae195c84f35a4d0b85fcc14187989b60fc0280) |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| devfreq.c | ||
| devfreq_ondemand.c | ||
| devfreq_performance.c | ||
| devfreq_powersave.c | ||
| devfreq_procfs.c | ||
| devfreq_qos.c | ||
| Kconfig | ||
| Make.defs | ||