]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] reduce MAX_NR_ZONES: make ZONE_HIGHMEM optional
authorChristoph Lameter <clameter@sgi.com>
Tue, 26 Sep 2006 06:31:14 +0000 (23:31 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 26 Sep 2006 15:48:46 +0000 (08:48 -0700)
commita5a59acb61d47db2e3081ae6a2b06b447f64c928
tree42e525df84454e89abd6cab8d7983a6a0188b6bb
parent15856eb4ecc35fa59e2604ae70fe2d361bcaa42f
[PATCH] reduce MAX_NR_ZONES: make ZONE_HIGHMEM optional

Make ZONE_HIGHMEM optional

- ifdef out code and definitions related to CONFIG_HIGHMEM

- __GFP_HIGHMEM falls back to normal allocations if there is no
  ZONE_HIGHMEM

- GFP_ZONEMASK becomes 0x01 if there is no DMA32 and no HIGHMEM
  zone.

[jdike@addtoit.com: build fix]
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Christoph Lameter <clameter@engr.sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/um/kernel/mem.c
include/linux/gfp.h
include/linux/mmzone.h
mm/page_alloc.c