Sound Open Firmware
Loading...
Searching...
No Matches
cpu-clk-manager.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause
2 *
3 * Copyright(c) 2022 Intel Corporation. All rights reserved.
4 *
5 * Author: Krzysztof Frydryk <frydryk.krzysztof@intel.com>
6 */
7
13
14#ifndef __SOF_LIB_CPU_CLK_MANAGER_H__
15#define __SOF_LIB_CPU_CLK_MANAGER_H__
16
17#include <rtos/spinlock.h>
18#include <rtos/sof.h>
19#include <stdint.h>
20
25 /* uncache only */
26 int kcps_consumption[CONFIG_CORE_COUNT]; /* Sum of declared consumptions on core */
27 struct k_spinlock lock;
28};
29
41int core_kcps_adjust(int core, int kcps_delta);
42
50int core_kcps_get(int core);
51
56
57#endif /*__SOF_LIB_CPU_CLK_MANAGER_H__ */
int core_kcps_adjust(int core, int kcps_delta)
Declare KCPS usage on core.
int core_kcps_get(int core)
Get KCPS usage on core.
int kcps_budget_init(void)
Init KCPS budget mechanism.
CPS budget data.
Definition cpu-clk-manager.h:24
struct k_spinlock lock
Definition cpu-clk-manager.h:27
int kcps_consumption[CONFIG_CORE_COUNT]
Definition cpu-clk-manager.h:26