summaryrefslogtreecommitdiffstats
path: root/arch/unicore32
diff options
context:
space:
mode:
authorJianyu Zhan <nasa4836@gmail.com>2014-01-22 00:49:12 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2014-01-22 01:19:44 +0100
commitece86e222db48d04bda218a2be70e384518bb08c (patch)
tree7cc9c61ca2f0f7112c2ed3698133aa559b6604ef /arch/unicore32
parentmm, mempolicy: remove unneeded functions for UMA configs (diff)
downloadlinux-ece86e222db48d04bda218a2be70e384518bb08c.tar.xz
linux-ece86e222db48d04bda218a2be70e384518bb08c.zip
mm/vmalloc: interchage the implementation of vmalloc_to_{pfn,page}
Currently we are implementing vmalloc_to_pfn() as a wrapper around vmalloc_to_page(), which is implemented as follow: 1. walks the page talbes to generates the corresponding pfn, 2. then converts the pfn to struct page, 3. returns it. And vmalloc_to_pfn() re-wraps vmalloc_to_page() to get the pfn. This seems too circuitous, so this patch reverses the way: implement vmalloc_to_page() as a wrapper around vmalloc_to_pfn(). This makes vmalloc_to_pfn() and vmalloc_to_page() slightly more efficient. No functional change. Signed-off-by: Jianyu Zhan <nasa4836@gmail.com> Cc: Vladimir Murzin <murzin.v@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/unicore32')
0 files changed, 0 insertions, 0 deletions