2 * Copyright (C) 2013-2014 ARM Limited. All rights reserved.
4 * This program is free software and is provided to you under the terms of the GNU General Public License version 2
5 * as published by the Free Software Foundation, and any use by you of this program is subject to the terms of such GNU licence.
7 * A copy of the licence is included with the program, and can also be obtained from Free Software
8 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12 * @file arm_core_scaling.h
13 * Example core scaling policy.
16 #ifndef __ARM_CORE_SCALING_H__
17 #define __ARM_CORE_SCALING_H__
19 struct mali_gpu_utilization_data;
22 * Initialize core scaling policy.
24 * @note The core scaling policy will assume that all PP cores are on initially.
26 * @param num_pp_cores Total number of PP cores.
28 void mali_core_scaling_init(int num_pp_cores);
31 * Terminate core scaling policy.
33 void mali_core_scaling_term(void);
36 * Update core scaling policy with new utilization data.
38 * @param data Utilization data.
40 void mali_core_scaling_update(struct mali_gpu_utilization_data *data);
42 void mali_core_scaling_sync(int num_cores);
44 #endif /* __ARM_CORE_SCALING_H__ */