If the system uses fTHP, the user can show statistics of
hugepage-mapped CMA pages via /proc/meminfo.
Otherwise, the user does not need to aware of such variables.
This patch removes such exported variables when fTHP-disabled
kernel is used.
Change-Id: Iaff9dd8d81da1a3caa60959b9c5c1f44544f30d4
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
global_node_page_state(NR_FILE_PTEMAPPED) * HPAGE_CONT_PTE_NR);
show_val_kb(m, "PhysCPteMapped: ",
phys_cont_pte_pages());
-#endif /* CONFIG_FINEGRAINED_THP */
show_val_kb(m, "PhysPmdMapped: ",
phys_huge_pmd_pages());
+#endif /* CONFIG_FINEGRAINED_THP */
#endif
#ifdef CONFIG_CMA
show_val_kb(m, "CmaTotal: ", totalcma_pages);