Commit | Line | Data |
---|---|---|
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 | ||
10 | struct 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 | */ | |
19 | void mali_core_scaling_init(int num_pp_cores); | |
20 | ||
21 | /** | |
22 | * Terminate core scaling policy. | |
23 | */ | |
24 | void mali_core_scaling_term(void); | |
25 | ||
26 | /** | |
27 | * Update core scaling policy with new utilization data. | |
28 | * | |
29 | * @param data Utilization data. | |
30 | */ | |
31 | void mali_core_scaling_update(struct mali_gpu_utilization_data *data); | |
32 | ||
33 | void mali_core_scaling_sync(int num_cores); | |
34 | ||
35 | #endif /* __ARM_CORE_SCALING_H__ */ |