aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/samsung/mali/common/mali_kernel_mem_os.c
diff options
context:
space:
mode:
authorWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2015-10-22 15:04:56 +0200
committerWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2015-10-22 15:04:56 +0200
commitb99374450c03bf5081b88995d91d34fb9b2fd040 (patch)
treeb6f525d915504ad8bd99bdb2dadcca345a4ad3a3 /drivers/media/video/samsung/mali/common/mali_kernel_mem_os.c
parenta39819e88ea4546218b581d7f061a99ca91d825b (diff)
parente2f984e707f517f24041b70018770b20b71cb6a6 (diff)
downloadkernel_samsung_smdk4412-b99374450c03bf5081b88995d91d34fb9b2fd040.zip
kernel_samsung_smdk4412-b99374450c03bf5081b88995d91d34fb9b2fd040.tar.gz
kernel_samsung_smdk4412-b99374450c03bf5081b88995d91d34fb9b2fd040.tar.bz2
Merge remote-tracking branch 'github/cm-11.0'
Conflicts: firmware/Makefile firmware/epen/W9001_B713.bin.ihex firmware/epen/W9001_B746.bin.ihex firmware/epen/W9001_B746JD.bin.ihex firmware/epen/W9001_B746L.bin.ihex firmware/epen/W9001_B746S.bin.ihex
Diffstat (limited to 'drivers/media/video/samsung/mali/common/mali_kernel_mem_os.c')
-rw-r--r--drivers/media/video/samsung/mali/common/mali_kernel_mem_os.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/media/video/samsung/mali/common/mali_kernel_mem_os.c b/drivers/media/video/samsung/mali/common/mali_kernel_mem_os.c
index 7fbea2a..8ff3d37 100644
--- a/drivers/media/video/samsung/mali/common/mali_kernel_mem_os.c
+++ b/drivers/media/video/samsung/mali/common/mali_kernel_mem_os.c
@@ -243,7 +243,15 @@ static void os_allocator_release(void * ctx, void * handle)
static mali_physical_memory_allocation_result os_allocator_allocate_page_table_block(void * ctx, mali_page_table_block * block)
{
- int allocation_order = 11; /* _MALI_OSK_CPU_PAGE_SIZE << 11 */
+#if defined(CONFIG_MACH_KONA)
+#ifndef CONFIG_FORCE_MAX_ZONEORDER
+ int allocation_order = 10;
+#else
+ int allocation_order = CONFIG_FORCE_MAX_ZONEORDER - 1;
+#endif
+#else
+ int allocation_order = 11; /* _MALI_OSK_CPU_PAGE_SIZE << 6 */
+#endif
void *virt = NULL;
u32 size = _MALI_OSK_CPU_PAGE_SIZE << allocation_order;
os_allocator * info;