Commit 1aeb9583 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

media: atomisp: totalram_pages is now a function

Fix the usage of totalram_pages, as this is now a function.

Fixes: ca79b0c2 ("mm: convert totalram_pages and totalhigh_pages variables to atomic")
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 60e5c189
...@@ -102,7 +102,7 @@ static phys_addr_t alloc_page_table(struct isp_mmu *mmu) ...@@ -102,7 +102,7 @@ static phys_addr_t alloc_page_table(struct isp_mmu *mmu)
* The slab allocator(kmem_cache and kmalloc family) doesn't handle * The slab allocator(kmem_cache and kmalloc family) doesn't handle
* GFP_DMA32 flag, so we have to use buddy allocator. * GFP_DMA32 flag, so we have to use buddy allocator.
*/ */
if (totalram_pages > (unsigned long)NR_PAGES_2GB) if (totalram_pages() > (unsigned long)NR_PAGES_2GB)
virt = (void *)__get_free_page(GFP_KERNEL | GFP_DMA32); virt = (void *)__get_free_page(GFP_KERNEL | GFP_DMA32);
else else
virt = kmem_cache_zalloc(mmu->tbl_cache, GFP_KERNEL); virt = kmem_cache_zalloc(mmu->tbl_cache, GFP_KERNEL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment