]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tile: add virt_to_kpte() API and clean up and document behavior
authorChris Metcalf <cmetcalf@tilera.com>
Mon, 12 Aug 2013 19:08:09 +0000 (15:08 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Tue, 13 Aug 2013 20:28:25 +0000 (16:28 -0400)
commitdc0861b45509dbc3856efd566c90017e22491e5b
treea8a0c41fe9bf317157fdbfdba613bf05ba37834d
parent3c35158e2a0b6d0d354d3596e2f847f1bfbf9d5a
tile: add virt_to_kpte() API and clean up and document behavior

We use virt_to_pte(NULL, va) a lot, which isn't very obvious.
I added virt_to_kpte(va) as a more obvious wrapper function,
that also validates the va as being a kernel adddress.

And, I fixed the semantics of virt_to_pte() so that we handle
the pud and pmd the same way, and we now document the fact that
we handle the final pte level differently.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
arch/tile/include/asm/mmu_context.h
arch/tile/include/asm/page.h
arch/tile/kernel/setup.c
arch/tile/mm/homecache.c
arch/tile/mm/init.c
arch/tile/mm/pgtable.c