mm: convert totalram_pages and totalhigh_pages variables to atomic
[sfrench/cifs-2.6.git] / drivers / media / platform / mtk-vpu / mtk_vpu.c
index 616f78b24a795ae1f555921b1220f159df692db3..b6602490a247c55429bea653785cca1c397cfec5 100644 (file)
@@ -855,7 +855,7 @@ static int mtk_vpu_probe(struct platform_device *pdev)
        /* Set PTCM to 96K and DTCM to 32K */
        vpu_cfg_writel(vpu, 0x2, VPU_TCM_CFG);
 
-       vpu->enable_4GB = !!(totalram_pages > (SZ_2G >> PAGE_SHIFT));
+       vpu->enable_4GB = !!(totalram_pages() > (SZ_2G >> PAGE_SHIFT));
        dev_info(dev, "4GB mode %u\n", vpu->enable_4GB);
 
        if (vpu->enable_4GB) {