|
Zephyr API Documentation 4.3.0-rc1
A Scalable Open Source RTOS
|
Dynamic CPU Frequency Scaling. More...
Topics | |
| CPU Frequency Policy | |
| CPU Frequency Scaling Policy. | |
| CPU Frequency pstate | |
| CPU Frequency Scaling Performance State (pstate) | |
Functions | |
| int | cpu_freq_pstate_set (const struct pstate *state) |
| Request processor set the given performance state. | |
Dynamic CPU Frequency Scaling.
| int cpu_freq_pstate_set | ( | const struct pstate * | state | ) |
#include <zephyr/cpu_freq/cpu_freq.h>
Request processor set the given performance state.
To be implemented by the SoC. This API abstracts the hardware and SoC specific calls required to change the performance state of the current CPU. The caller must ensure that the current CPU does not change. If called from an ISR or a single CPU system, this restriction is automatically met. If called from a thread on an SMP system, either interrupts or the scheduler must be disabled to ensure the current CPU does not change.
| state | Pointer to performance state. |
| 0 | if request received successfully, -errno in case of failure. |