Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
policy.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2025 Analog Devices, Inc.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
12
13#ifndef ZEPHYR_SUBSYS_CPU_FREQ_POLICY_H_
14#define ZEPHYR_SUBSYS_CPU_FREQ_POLICY_H_
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
20/*
21 * CPU Frequency Policy Interface - to be implemented by each policy.
22 */
23
24#include <zephyr/types.h>
26
27
36
50int cpu_freq_policy_select_pstate(const struct pstate **pstate_out);
51
61
77const struct pstate *cpu_freq_policy_pstate_set(const struct pstate *state);
78
82
83#ifdef __cplusplus
84}
85#endif
86
87#endif /* ZEPHYR_SUBSYS_CPU_FREQ_POLICY_H_ */
int cpu_freq_policy_select_pstate(const struct pstate **pstate_out)
Get the next P-state from CPU frequency scaling policy.
const struct pstate * cpu_freq_policy_pstate_set(const struct pstate *state)
Set the CPU frequency scaling P-state according to policy.
void cpu_freq_policy_reset(void)
Reset data structures used by CPU frequency scaling policy.
state
Definition parser_state.h:29
Header file for CPU frequency scaling performance state (P-state).
CPU performance state (pstate) struct.
Definition pstate.h:64