]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - include/asm-x86_64/io.h
[PATCH] reorganize x86-64 NUMA and DISCONTIGMEM config options
[linux-2.6.git] / include / asm-x86_64 / io.h
index 94202703fae2f267357bd0fcdefa5c9ffedc3dea..37fc3f149a5a6a2cf54cf194303d3975d32e85b9 100644 (file)
@@ -124,12 +124,7 @@ extern inline void * phys_to_virt(unsigned long address)
 /*
  * Change "struct page" to physical address.
  */
-#ifdef CONFIG_DISCONTIGMEM
-#include <asm/mmzone.h>
 #define page_to_phys(page)    ((dma_addr_t)page_to_pfn(page) << PAGE_SHIFT)
-#else
-#define page_to_phys(page)     ((page - mem_map) << PAGE_SHIFT)
-#endif
 
 #include <asm-generic/iomap.h>