rk: ion: resolve build err
[firefly-linux-kernel-4.4.55.git] / drivers / gpu / arm / t6xx / kbase / src / common / mali_kbase_pm_demand.h
1 /*
2  *
3  * (C) COPYRIGHT ARM Limited. All rights reserved.
4  *
5  * This program is free software and is provided to you under the terms of the
6  * GNU General Public License version 2 as published by the Free Software
7  * Foundation, and any use by you of this program is subject to the terms
8  * of such GNU licence.
9  *
10  * A copy of the licence is included with the program, and can also be obtained
11  * from Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
12  * Boston, MA  02110-1301, USA.
13  *
14  */
15
16
17
18
19
20 /**
21  * @file mali_kbase_pm_demand.h
22  * A simple demand based power management policy
23  */
24
25 #ifndef MALI_KBASE_PM_DEMAND_H
26 #define MALI_KBASE_PM_DEMAND_H
27
28 /**
29  * The demand power management policy has the following characteristics:
30  * - When KBase indicates that the GPU will be powered up, but we don't yet
31  *   know which Job Chains are to be run:
32  *  - The Shader Cores are not powered up
33  * - When KBase indicates that a set of Shader Cores are needed to submit the
34  *   currently queued Job Chains:
35  *  - Only those Shader Cores are powered up
36  * - When KBase indicates that the GPU need not be powered:
37  *  - The Shader Cores are powered off, and the GPU itself is powered off too.
38  *
39  * @note:
40  * - KBase indicates the GPU will be powered up when it has a User Process that
41  *   has just started to submit Job Chains.
42  * - KBase indicates the GPU need not be powered when all the Job Chains from
43  *   User Processes have finished, and it is waiting for a User Process to
44  *   submit some more Job Chains.
45  */
46
47 /**
48  * Private structure for policy instance data.
49  *
50  * This contains data that is private to the particular power policy that is active.
51  */
52 typedef struct kbasep_pm_policy_demand {
53         /** No state needed - just have a dummy variable here */
54         int dummy;
55 } kbasep_pm_policy_demand;
56
57 #endif                          /* MALI_KBASE_PM_DEMAND_H */