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

CPU Frequency Scaling Performance State (pstate) More...

Data Structures

struct  pstate
 CPU performance state (pstate) struct. More...

Macros

#define PSTATE_DT_SYM(_node)
 Synthesize symbol of pstate from devicetree dependency ordinal.
#define PSTATE_DT_DEFINE(_node, _config)
 Define all pstate information for the given node identifier.
#define PSTATE_DT_GET(_node)
 Get a pstate reference from a devicetree node identifier.

Detailed Description

CPU Frequency Scaling Performance State (pstate)

Since
4.3
Version
0.1.0

Macro Definition Documentation

◆ PSTATE_DT_DEFINE

#define PSTATE_DT_DEFINE ( _node,
_config )

#include <zephyr/cpu_freq/pstate.h>

Value:
const struct pstate PSTATE_DT_SYM(_node) = { \
.load_threshold = DT_PROP(_node, load_threshold), \
.config = _config, \
};
#define DT_PROP(node_id, prop)
Get a devicetree property value.
Definition devicetree.h:762
#define PSTATE_DT_SYM(_node)
Synthesize symbol of pstate from devicetree dependency ordinal.
Definition pstate.h:28
CPU performance state (pstate) struct.
Definition pstate.h:58

Define all pstate information for the given node identifier.

Parameters
_nodeNode identifier.
_configPointer to the SoC specific configuration for the pstate.

◆ PSTATE_DT_GET

#define PSTATE_DT_GET ( _node)

#include <zephyr/cpu_freq/pstate.h>

Value:

Get a pstate reference from a devicetree node identifier.

To be used in DT_FOREACH_CHILD() or similar macros

Parameters
_nodeNode identifier.

◆ PSTATE_DT_SYM

#define PSTATE_DT_SYM ( _node)

#include <zephyr/cpu_freq/pstate.h>

Value:
_CONCAT(__pstate_, DT_DEP_ORD(_node))
#define DT_DEP_ORD(node_id)
Get a node's dependency ordinal.
Definition ordinals.h:25

Synthesize symbol of pstate from devicetree dependency ordinal.