diff options
Diffstat (limited to 'include/linux/mmzone.h')
-rw-r--r-- | include/linux/mmzone.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index 0d1a5981bb94..8d6caa414c4c 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h | |||
@@ -397,6 +397,7 @@ static inline int is_normal_idx(int idx) | |||
397 | { | 397 | { |
398 | return (idx == ZONE_NORMAL); | 398 | return (idx == ZONE_NORMAL); |
399 | } | 399 | } |
400 | |||
400 | /** | 401 | /** |
401 | * is_highmem - helper function to quickly check if a struct zone is a | 402 | * is_highmem - helper function to quickly check if a struct zone is a |
402 | * highmem zone or not. This is an attempt to keep references | 403 | * highmem zone or not. This is an attempt to keep references |
@@ -413,6 +414,16 @@ static inline int is_normal(struct zone *zone) | |||
413 | return zone == zone->zone_pgdat->node_zones + ZONE_NORMAL; | 414 | return zone == zone->zone_pgdat->node_zones + ZONE_NORMAL; |
414 | } | 415 | } |
415 | 416 | ||
417 | static inline int is_dma32(struct zone *zone) | ||
418 | { | ||
419 | return zone == zone->zone_pgdat->node_zones + ZONE_DMA32; | ||
420 | } | ||
421 | |||
422 | static inline int is_dma(struct zone *zone) | ||
423 | { | ||
424 | return zone == zone->zone_pgdat->node_zones + ZONE_DMA; | ||
425 | } | ||
426 | |||
416 | /* These two functions are used to setup the per zone pages min values */ | 427 | /* These two functions are used to setup the per zone pages min values */ |
417 | struct ctl_table; | 428 | struct ctl_table; |
418 | struct file; | 429 | struct file; |