]> 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)
commitaf47c3c74c2c52ec3b9e7bbe3b5cc1684da1c78f
treec5374c281e953446667d8788976b180be97e1b98
parent23474863476a6dd85673e156180c64933a069fb2
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