nuttx/drivers/devfreq
guanyi3 7a1c62911d devfreq/procfs: add write support for frequency QoS constraints
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)
2026-08-08 15:23:54 -03:00
..
CMakeLists.txt
devfreq.c drivers/devfreq: replace mutex to spinlock 2026-08-08 15:23:54 -03:00
devfreq_ondemand.c drivers/devfreq: ondemand should init governor_data before use it 2026-08-08 15:23:54 -03:00
devfreq_performance.c drivers/devfreq: remove default governor 2026-08-08 15:23:54 -03:00
devfreq_powersave.c drivers/devfreq: remove default governor 2026-08-08 15:23:54 -03:00
devfreq_procfs.c devfreq/procfs: add write support for frequency QoS constraints 2026-08-08 15:23:54 -03:00
devfreq_qos.c
Kconfig drivers/devfreq: remove default governor 2026-08-08 15:23:54 -03:00
Make.defs