From e456463f81e3c111249838b588c0097e21a215e8 Mon Sep 17 00:00:00 2001 From: "binqi.zhang" Date: Tue, 22 Aug 2017 17:19:09 +0800 Subject: [PATCH] gpu: limit the dump function due to kernel version [1/1] PD# NONE limit debug function Change-Id: I3e294967436e024752b517454416b66ce9009f69 --- mali/linux/mali_memory_manager.c | 3 +++ utgard/r7p0/linux/mali_memory_manager.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/mali/linux/mali_memory_manager.c b/mali/linux/mali_memory_manager.c index bf7797a..afbcf78 100755 --- a/mali/linux/mali_memory_manager.c +++ b/mali/linux/mali_memory_manager.c @@ -45,7 +45,10 @@ #include "mali_ukk.h" #include "mali_memory_swap_alloc.h" +#if (LINUX_VERSION_CODE == KERNEL_VERSION(3, 14, 0)) || (LINUX_VERSION_CODE == KERNEL_VERSION(4, 9, 0)) #define AML_MALI_DEBUG 1 +#endif + /* * New memory system interface */ diff --git a/utgard/r7p0/linux/mali_memory_manager.c b/utgard/r7p0/linux/mali_memory_manager.c index f5aa667..65af52a 100644 --- a/utgard/r7p0/linux/mali_memory_manager.c +++ b/utgard/r7p0/linux/mali_memory_manager.c @@ -45,7 +45,10 @@ #include "mali_ukk.h" #include "mali_memory_swap_alloc.h" +#if (LINUX_VERSION_CODE == KERNEL_VERSION(3, 14, 0)) || (LINUX_VERSION_CODE == KERNEL_VERSION(4, 9, 0)) #define AML_MALI_DEBUG 1 +#endif + /* * New memory system interface */ -- 2.20.1