]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/vmstat.h
[PATCH] reduce MAX_NR_ZONES: make ZONE_DMA32 optional
[linux-2.6-omap-h63xx.git] / include / linux / vmstat.h
index 2d9b1b60798aca15f99c9fe46afe5587f1605b6e..9c6e62c56ec25a776cd644288409b15590ed6328 100644 (file)
@@ -124,12 +124,10 @@ static inline unsigned long node_page_state(int node,
        struct zone *zones = NODE_DATA(node)->node_zones;
 
        return
-#ifndef CONFIG_DMA_IS_NORMAL
-#if !defined(CONFIG_DMA_IS_DMA32) && BITS_PER_LONG >= 64
+#ifdef CONFIG_ZONE_DMA32
                zone_page_state(&zones[ZONE_DMA32], item) +
 #endif
                zone_page_state(&zones[ZONE_NORMAL], item) +
-#endif
 #ifdef CONFIG_HIGHMEM
                zone_page_state(&zones[ZONE_HIGHMEM], item) +
 #endif