]> git.baikalelectronics.ru Git - kernel.git/commit
[MIPS] page.h: remove __pa() usages.
authorFranck Bui-Huu <vagabon.xyz@gmail.com>
Thu, 19 Oct 2006 11:19:59 +0000 (13:19 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 30 Nov 2006 01:14:40 +0000 (01:14 +0000)
commit5934493c048c64594b5143a834ac1f8718018e35
tree53878461941bf05a4c17653ddfc40362cfcb9738
parent91e10fcd6e04025c9d60b9dbc3f8a7eff7a5d2fa
[MIPS] page.h: remove __pa() usages.

__pa() was used by virt_to_page() and virt_addr_valid(). These
latter are used when kernel is initialised so __pa() is not
appropriate, we use virt_to_phys() instead.

Futhermore __pa() is going to take care of CKSEG0/XKPHYS
address mix for 64 bit kernels. This makes __pa() more complex
than virt_to_phys() and this extra work is not needed by
virt_to_page() and virt_addr_valid().

Eventually it consolidates virt_to_phys() prototype by making
its argument 'const'. this avoids some warnings that was due
to some virt_to_page() usages which pass const pointer.

Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mm/init.c
include/asm-mips/io.h
include/asm-mips/page.h
include/asm-mips/pgtable.h