import OT_8063_20170412 mali driver
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / misc / mediatek / gpu / mt8127 / mali / mali / platform / arm_core_scaling.h
CommitLineData
6fa3eb70
S
1
2/**
3 * @file arm_core_scaling.h
4 * Example core scaling policy.
5 */
6
7#ifndef __ARM_CORE_SCALING_H__
8#define __ARM_CORE_SCALING_H__
9
10struct mali_gpu_utilization_data;
11
12/**
13 * Initialize core scaling policy.
14 *
15 * @note The core scaling policy will assume that all PP cores are on initially.
16 *
17 * @param num_pp_cores Total number of PP cores.
18 */
19void mali_core_scaling_init(int num_pp_cores);
20
21/**
22 * Terminate core scaling policy.
23 */
24void mali_core_scaling_term(void);
25
26/**
27 * Update core scaling policy with new utilization data.
28 *
29 * @param data Utilization data.
30 */
31void mali_core_scaling_update(struct mali_gpu_utilization_data *data);
32
33void mali_core_scaling_sync(int num_cores);
34
35#endif /* __ARM_CORE_SCALING_H__ */