diff options
author | Andy Whitcroft <apw@shadowen.org> | 2004-07-10 19:33:34 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-07-10 19:33:34 -0700 |
commit | cf02d5a464e4f2654573df5e1fa199357b77c3aa (patch) | |
tree | 8313cef8be35a968acd4c8da98b7ec3a43b3ccce /mm | |
parent | 692c55445d1727b61ff5ab0d45e822c7d929e2bf (diff) | |
download | history-cf02d5a464e4f2654573df5e1fa199357b77c3aa.tar.gz |
[PATCH] convert uses of ZONE_HIGHMEM to is_highmem
As the comments in mmzone.h indicate is_highmem() is designed to reduce the
proliferation of the constant ZONE_HIGHMEM. This patch updates references
to ZONE_HIGHMEM to use is_highmem(). None appear to be on critical paths.
Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/page_alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 80ed5174fc501d..c8e9b67d7cb045 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -1402,7 +1402,7 @@ void __init memmap_init_zone(struct page *start, unsigned long size, int nid, INIT_LIST_HEAD(&page->lru); #ifdef WANT_PAGE_VIRTUAL /* The shift won't overflow because ZONE_NORMAL is below 4G. */ - if (zone != ZONE_HIGHMEM) + if (!is_highmem(zone)) set_page_address(page, __va(start_pfn << PAGE_SHIFT)); #endif start_pfn++; |