From: Alexander Duyck Date: Fri, 16 Nov 2012 21:57:13 +0000 (-0800) Subject: x86: Use __pa_symbol instead of __pa on C visible symbols X-Git-Tag: v3.9-rc1~108^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc8d782677f163dee76427fdd8a92bebd2b50b23;p=pandora-kernel.git x86: Use __pa_symbol instead of __pa on C visible symbols When I made an attempt at separating __pa_symbol and __pa I found that there were a number of cases where __pa was used on an obvious symbol. I also caught one non-obvious case as _brk_start and _brk_end are based on the address of __brk_base which is a C visible symbol. In mark_rodata_ro I was able to reduce the overhead of kernel symbol to virtual memory translation by using a combination of __va(__pa_symbol()) instead of page_address(virt_to_page()). Signed-off-by: Alexander Duyck Link: http://lkml.kernel.org/r/20121116215640.8521.80483.stgit@ahduyck-cp1.jf.intel.com Signed-off-by: H. Peter Anvin --- Reading git-diff-tree failed