Zephyr Project API 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)   _CONCAT(__pstate_, DT_DEP_ORD(_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)   &PSTATE_DT_SYM(_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 <include/zephyr/cpu_freq/pstate.h>

Value:
const struct pstate PSTATE_DT_SYM(_node) = { \
.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
uint8_t load_threshold
CPU load threshold at which P-state should be triggered.
Definition pstate.h:59

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)    &PSTATE_DT_SYM(_node)

#include <include/zephyr/cpu_freq/pstate.h>

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)    _CONCAT(__pstate_, DT_DEP_ORD(_node))

#include <include/zephyr/cpu_freq/pstate.h>

Synthesize symbol of pstate from devicetree dependency ordinal.