13#ifndef ZEPHYR_SUBSYS_CPU_FREQ_PSTATE_H_
14#define ZEPHYR_SUBSYS_CPU_FREQ_PSTATE_H_
34#define PSTATE_DT_SYM(_node) _CONCAT(__pstate_, DT_DEP_ORD(_node))
42#define PSTATE_DT_DEFINE(_node, _config) \
43 const struct pstate PSTATE_DT_SYM(_node) = { \
44 .load_threshold = DT_PROP(_node, load_threshold), \
55#define PSTATE_DT_GET(_node) &PSTATE_DT_SYM(_node)
70#define Z_DECLARE_PSTATE_EXTERN(_node) \
71 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:3503
#define DT_PATH(...)
Get a node identifier for a devicetree path.
Definition devicetree.h:141
Header file for CPU frequency scaling performance state (P-state).
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
CPU performance state (pstate) struct.
Definition pstate.h:64
const void * config
Vendor specific devicetree properties.
Definition pstate.h:66
uint8_t load_threshold
CPU load threshold at which P-state should be triggered.
Definition pstate.h:65