import PULS_20160108
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / misc / mediatek / gpu / mt8127 / mali / mali / platform / arm / arm_core_scaling.h
1 /*
2 * This confidential and proprietary software may be used only as
3 * authorised by a licensing agreement from ARM Limited
4 * (C) COPYRIGHT 2013 ARM Limited
5 * ALL RIGHTS RESERVED
6 * The entire notice above must be reproduced on all authorised
7 * copies and copies may only be made to the extent permitted
8 * by a licensing agreement from ARM Limited.
9 */
10
11 /**
12 * @file arm_core_scaling.h
13 * Example core scaling policy.
14 */
15
16 #ifndef __ARM_CORE_SCALING_H__
17 #define __ARM_CORE_SCALING_H__
18
19 struct mali_gpu_utilization_data;
20
21 /**
22 * Initialize core scaling policy.
23 *
24 * @note The core scaling policy will assume that all PP cores are on initially.
25 *
26 * @param num_pp_cores Total number of PP cores.
27 */
28 void mali_core_scaling_init(int num_pp_cores);
29
30 /**
31 * Terminate core scaling policy.
32 */
33 void mali_core_scaling_term(void);
34
35 /**
36 * Update core scaling policy with new utilization data.
37 *
38 * @param data Utilization data.
39 */
40 void mali_core_scaling_update(struct mali_gpu_utilization_data *data);
41
42 void mali_core_scaling_sync(int num_cores);
43
44 #endif /* __ARM_CORE_SCALING_H__ */