aboutsummaryrefslogtreecommitdiffstats
path: root/mm/vmstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/vmstat.c')
-rw-r--r--mm/vmstat.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/mm/vmstat.c b/mm/vmstat.c
index 20c18b7..bdf534a 100644
--- a/mm/vmstat.c
+++ b/mm/vmstat.c
@@ -78,7 +78,11 @@ void vm_events_fold_cpu(int cpu)
*
* vm_stat contains the global counters
*/
+#ifndef CONFIG_DMA_CMA
atomic_long_t vm_stat[NR_VM_ZONE_STAT_ITEMS];
+#else
+atomic_long_t vm_stat[NR_VM_ZONE_STAT_ITEMS] __cacheline_aligned_in_smp;
+#endif
EXPORT_SYMBOL(vm_stat);
#ifdef CONFIG_SMP
@@ -613,6 +617,9 @@ static char * const migratetype_names[MIGRATE_TYPES] = {
"Reclaimable",
"Movable",
"Reserve",
+#ifdef CONFIG_DMA_CMA
+ "CMA",
+#endif
"Isolate",
};
@@ -718,6 +725,9 @@ const char * const vmstat_text[] = {
"numa_other",
#endif
"nr_anon_transparent_hugepages",
+#ifdef CONFIG_DMA_CMA
+ "nr_free_cma",
+#endif
"nr_dirty_threshold",
"nr_dirty_background_threshold",