Zephyr API Documentation 4.2.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
7#ifndef ZEPHYR_SUBSYS_CPU_FREQ_POLICY_H_
8#define ZEPHYR_SUBSYS_CPU_FREQ_POLICY_H_
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14/*
15 * CPU Frequency Policy Interface - to be implemented by each policy.
16 */
17
18#include <zephyr/types.h>
20
21
30
44int cpu_freq_policy_select_pstate(const struct pstate **pstate_out);
45
55
71const struct pstate *cpu_freq_policy_pstate_set(const struct pstate *state);
72
76
77#ifdef __cplusplus
78}
79#endif
80
81#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
CPU performance state (pstate) struct.
Definition pstate.h:58