From: binqi.zhang Date: Tue, 22 Aug 2017 09:19:09 +0000 (+0800) Subject: gpu: limit the dump function due to kernel version [1/1] X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e456463f81e3c111249838b588c0097e21a215e8;p=GitHub%2FLineageOS%2FG12%2Fandroid_hardware_amlogic_kernel-modules_mali-driver.git gpu: limit the dump function due to kernel version [1/1] PD# NONE limit debug function Change-Id: I3e294967436e024752b517454416b66ce9009f69 --- 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 */