mm: move __phys_to_pfn and __pfn_to_phys to asm/generic/memory_model.h
authorChristoph Hellwig <hch@lst.de>
Fri, 7 Aug 2015 21:41:01 +0000 (17:41 -0400)
committerDan Williams <dan.j.williams@intel.com>
Thu, 27 Aug 2015 23:40:58 +0000 (19:40 -0400)
Three architectures already define these, and we'll need them genericly
soon.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
arch/arm/include/asm/memory.h
arch/arm64/include/asm/memory.h
arch/unicore32/include/asm/memory.h
include/asm-generic/memory_model.h

index b7f6fb4..98d58bb 100644 (file)
 #define DTCM_OFFSET    UL(0xfffe8000)
 #endif
 
-/*
- * Convert a physical address to a Page Frame Number and back
- */
-#define        __phys_to_pfn(paddr)    ((unsigned long)((paddr) >> PAGE_SHIFT))
-#define        __pfn_to_phys(pfn)      ((phys_addr_t)(pfn) << PAGE_SHIFT)
-
 /*
  * Convert a page to/from a physical address
  */
Simple merge
Simple merge
Simple merge