gpu: limit the dump function due to kernel version [1/1]
authorbinqi.zhang <binqi.zhang@amlogic.com>
Tue, 22 Aug 2017 09:19:09 +0000 (17:19 +0800)
committerbinqi.zhang <binqi.zhang@amlogic.com>
Thu, 21 Sep 2017 02:25:03 +0000 (10:25 +0800)
PD# NONE

limit debug function

Change-Id: I3e294967436e024752b517454416b66ce9009f69

mali/linux/mali_memory_manager.c
utgard/r7p0/linux/mali_memory_manager.c

index bf7797ada2c4e6047e82ceaad6cd14533c8bd67e..afbcf783ac55f4e03c94bc9f36007f1dc666b8a1 100755 (executable)
 #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
 */
index f5aa66715010b9b7ee9f89d85c01dd4918cdd534..65af52a20b484320412fe796cd18d96add7447ce 100644 (file)
 #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
 */