Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

CPU Frequency Scaling Policy. More...

Functions

int cpu_freq_policy_select_pstate (const struct pstate **pstate)
 Get the next P-state from CPU Frequency Policy.

Detailed Description

CPU Frequency Scaling Policy.

Since
4.3
Version
0.1.0

Function Documentation

◆ cpu_freq_policy_select_pstate()

int cpu_freq_policy_select_pstate ( const struct pstate ** pstate)

#include <zephyr/cpu_freq/policy.h>

Get the next P-state from CPU Frequency Policy.

This function is implemented by a CPU Freq policy selected via Kconfig.

Parameters
pstatePointer to the P-state struct where the next P-state is returned.
Return values
0in case of success, nonzero in case of failure.