diff options
author | Sonic Zhang | 2011-11-01 01:08:31 +0100 |
---|---|---|
committer | Linus Torvalds | 2011-11-01 01:30:48 +0100 |
commit | 06d5e032adcbc7d50c606a1396f00e2474e4213e (patch) | |
tree | c9c0134ecc8d26f43749b2108325cd8e1bcaadfd /mm/page_alloc.c | |
parent | thp: mremap support and TLB optimization (diff) | |
download | kernel-qcow2-linux-06d5e032adcbc7d50c606a1396f00e2474e4213e.tar.gz kernel-qcow2-linux-06d5e032adcbc7d50c606a1396f00e2474e4213e.tar.xz kernel-qcow2-linux-06d5e032adcbc7d50c606a1396f00e2474e4213e.zip |
include/asm-generic/page.h: calculate virt_to_page and page_to_virt via predefined macro
On NOMMU architectures, if physical memory doesn't start from 0,
ARCH_PFN_OFFSET is defined to generate page index in mem_map array.
Because virtual address is equal to physical address, PAGE_OFFSET is
always 0. virt_to_page and page_to_virt should not index page by
PAGE_OFFSET directly.
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Cc: Greg Ungerer <gerg@snapgear.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
0 files changed, 0 insertions, 0 deletions