7#ifndef ZEPHYR_SUBSYS_CPU_FREQ_PSTATE_H_
8#define ZEPHYR_SUBSYS_CPU_FREQ_PSTATE_H_
28#define PSTATE_DT_SYM(_node) _CONCAT(__pstate_, DT_DEP_ORD(_node))
36#define PSTATE_DT_DEFINE(_node, _config) \
37 const struct pstate PSTATE_DT_SYM(_node) = { \
38 .load_threshold = DT_PROP(_node, load_threshold), \
49#define PSTATE_DT_GET(_node) &PSTATE_DT_SYM(_node)
64#define Z_DECLARE_PSTATE_EXTERN(_node) \
65 extern const struct pstate PSTATE_DT_SYM(_node);
#define DT_FOREACH_CHILD_STATUS_OKAY(node_id, fn)
Call fn on the child nodes with status okay
Definition devicetree.h:3207
#define DT_PATH(...)
Get a node identifier for a devicetree path.
Definition devicetree.h:140
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
CPU performance state (pstate) struct.
Definition pstate.h:58
const void * config
Vendor specific devicetree properties.
Definition pstate.h:60
uint8_t load_threshold
CPU load threshold at which P-state should be triggered.
Definition pstate.h:59