Files
nuttx/include
guanyi 83e4b6065a drivers/devfreq: add missing governor_data field and ondemand declaration
The ondemand governor (devfreq_ondemand.c) references dev->governor_data
to store its private state, and defines devfreq_ondemand(), but neither
the field in struct devfreq_s nor the function declaration were present
in include/nuttx/devfreq.h.  As a result, building with
CONFIG_DEVFREQ_GOV_ONDEMAND=y failed to compile.

These two definitions were originally introduced by a downstream commit
that was not part of the devfreq upstreaming series, so the gap only
surfaced when the ondemand governor is enabled (which additionally
requires !CONFIG_SCHED_CPULOAD_NONE and is off by default).

Add the governor_data field to struct devfreq_s and declare
devfreq_ondemand() alongside the other governors.

Signed-off-by: guanyi <guanyi@xiaomi.com>
2026-08-11 12:40:27 -03:00
..
2026-06-29 14:44:17 +02:00
2026-07-11 14:55:59 -03:00
2026-06-23 23:09:22 +08:00
2026-01-22 22:14:00 +08:00
2026-01-16 10:03:53 +08:00