• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

src/29-Dec-2025-7551

CMakeLists.txtD29-Dec-2025242 117

README.rstD29-Dec-2025653 2012

prj.confD29-Dec-2025286 136

pstate-stub.overlayD29-Dec-2025469 2824

sample.yamlD29-Dec-20251.1 KiB3835

README.rst

1.. zephyr:code-sample:: cpu_freq_on_demand
2   :name: On-demand CPU frequency scaling
3
4   Dynamically scale CPU frequency using the on-demand policy.
5
6Overview
7********
8
9This sample demonstrates the :ref:`CPU frequency subsystem's <cpu_freq>` on-demand policy. The
10sample will print debug information like CPU load and CPU frequency subsystem logs to the
11console for visibility into the subsystem.
12
13The example will iterate through some simulated CPU processing scenarios in the main application.
14
15To use the pstate-stub.overlay file, build the sample with:
16
17.. code-block:: console
18
19   west build -b <board> -p -- -DDTC_OVERLAY_FILE=pstate-stub.overlay
20