diff options
| author | Christoph Lameter <[email protected]> | 2006-09-25 23:31:15 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2006-09-26 08:48:47 -0700 |
| commit | 27bf71c2a7e596ed34e9bf2d4a5030321a09a1ad (patch) | |
| tree | 30aca46595486b7a9d69d2d2f58b305cf32f41d9 /include/linux | |
| parent | e53ef38d05dd59ed281a35590e4a5b64d8ff4c52 (diff) | |
[PATCH] reduce MAX_NR_ZONES: remove display of counters for unconfigured zones
eventcounters: Do not display counters for zones that are not available on an
arch
Do not define or display counters for the DMA32 and the HIGHMEM zone if such
zones were not configured.
[[email protected]: s390 fix]
[[email protected]: s390 fix]
Signed-off-by: Christoph Lameter <[email protected]>
Cc: Martin Schwidefsky <[email protected]>
Signed-off-by: Heiko Carstens <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/vmstat.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/include/linux/vmstat.h b/include/linux/vmstat.h index 9c6e62c56ec2..176c7f797339 100644 --- a/include/linux/vmstat.h +++ b/include/linux/vmstat.h @@ -18,7 +18,19 @@ * generated will simply be the increment of a global address. */ -#define FOR_ALL_ZONES(x) x##_DMA, x##_DMA32, x##_NORMAL, x##_HIGH +#ifdef CONFIG_ZONE_DMA32 +#define DMA32_ZONE(xx) xx##_DMA32, +#else +#define DMA32_ZONE(xx) +#endif + +#ifdef CONFIG_HIGHMEM +#define HIGHMEM_ZONE(xx) , xx##_HIGH +#else +#define HIGHMEM_ZONE(xx) +#endif + +#define FOR_ALL_ZONES(xx) xx##_DMA, DMA32_ZONE(xx) xx##_NORMAL HIGHMEM_ZONE(xx) enum vm_event_item { PGPGIN, PGPGOUT, PSWPIN, PSWPOUT, FOR_ALL_ZONES(PGALLOC), |