]> git.baikalelectronics.ru Git - kernel.git/commit
tile: fix some issues in hugepage support
authorChris Metcalf <cmetcalf@tilera.com>
Wed, 7 Aug 2013 15:00:45 +0000 (11:00 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Tue, 13 Aug 2013 20:25:52 +0000 (16:25 -0400)
commitc81010db7144b6c8c4fce8ba1dad5ed5455cc1b1
tree08a280b13c2871e3e2edac5db1c71324d6cf9725
parent46255e3efc5d585da264381aca0a5c922462f308
tile: fix some issues in hugepage support

First, in huge_pte_offset(), we were erroneously checking
pgd_present(), which is always true, rather than pud_present(),
which is the thing that tells us if there is a top-level (L0) PTE.
Fixing this means we properly look up huge page entries only when
the Present bit is actually set in the PTE.

Second, use the standard pte_alloc_map() instead of the hand-rolled
pte_alloc_hugetlb() routine that basically was written to avoid
worrying about CONFIG_HIGHPTE.  However, we no longer plan to support
HIGHPTE, so a separate routine was just unnecessary code duplication.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
arch/tile/mm/hugetlbpage.c