]> git.baikalelectronics.ru Git - kernel.git/commit
parisc: Add defines for Huge page support
authorHelge Deller <deller@gmx.de>
Fri, 20 Nov 2015 14:46:52 +0000 (15:46 +0100)
committerHelge Deller <deller@gmx.de>
Sun, 22 Nov 2015 11:22:34 +0000 (12:22 +0100)
commitaafafe03a196f1f6849e32e90db5ff5f21e39a58
treec5374c281e953446667d8788976b180be97e1b98
parent3cf4cefaba3206e652ab1f4fa646a7938b9a6141
parisc: Add defines for Huge page support

Huge pages on parisc will have the same size as one pmd table, which
is on a 64bit kernel 2MB on a kernel with 4K kernel page sizes, and
on a 32bit kernel 4MB when used with 4K kernel pages.

Since parisc does not physically supports 2MB huge page sizes, emulate
it with two consecutive 1MB page sizes instead. Keeping the same huge
page size as one pmd will allow us to add transparent huge page support
later on.

Bit 21 in the pte flags was unused and will now be used to mark a page
as huge page (_PAGE_HPAGE_BIT).

Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/include/asm/page.h
arch/parisc/include/asm/pgtable.h