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