OS_MEMORY_KERNEL_BUFFER_SIZE_IN_MB ?= 16
-ifeq ($(CONFIG_MALI400_PROFILING),y)
+ifeq ($(CONFIG_MALI400_UTILIZATION),y)
USING_GPU_UTILIZATION ?= 1
else
- USING_GPU_UTILIZATION ?= 1
+ USING_GPU_UTILIZATION ?= 0
endif
PROFILING_SKIP_PP_JOBS ?= 0
PROFILING_SKIP_PP_AND_GP_JOBS ?= 0
depends on MALI400_PROFILING
select PROFILING
select FTRACE
- select MALI400_DEBUG
select PERF_EVENTS
select ENABLE_DEFAULT_TRACERS
select DEBUG_MUTEXES
config MALI400_PROFILING
bool "Enable Mali profiling"
depends on MALI400
+ select MALI400_DEBUG
select TRACEPOINTS
default n
---help---
---help---
This enables the internal legacy Mali profiling API.
+config MALI400_UTILIZATION
+ bool "Enable Mali Utilization and Frequency and pp scaling."
+ depends on MALI400
+ default y
+ ---help---
+ This enables the frequency and pp scaling.
+
config MALI400_UMP
bool "Enable UMP support"
depends on MALI400
#include <asm/io.h>
#include "mali_clock.h"
-unsigned int mali_default_clock_step = MALI_CLOCK_318;// MALI_CLOCK_318;
+#ifdef CONFIG_MALI400_UTILIZATION
+#define CUR_MALI_CLOCK MALI_CLOCK_318
+#else
+#define CUR_MALI_CLOCK MALI_CLOCK_637
+#endif
+
+unsigned int mali_default_clock_step = CUR_MALI_CLOCK;// MALI_CLOCK_318;
static DEFINE_SPINLOCK(lock);