diff options
| author | Allen Pais <[email protected]> | 2018-10-23 06:36:57 +0530 |
|---|---|---|
| committer | Will Deacon <[email protected]> | 2018-12-06 17:01:13 +0000 |
| commit | a21b0b78eaf770c6c3814dd59d213cd6aa47eecd (patch) | |
| tree | 52fafa35a4c93a2f49863cb2ccb7c01d60cc1837 /lib/mpi/mpiutil.c | |
| parent | cc9f8349cb33965120a96c12e05d00676162eb7f (diff) | |
arm64: hugetlb: Register hugepages during arch init
Add hstate for each supported hugepage size using arch initcall.
* no hugepage parameters
Without hugepage parameters, only a default hugepage size is
available for dynamic allocation. It's different, for example, from
x86_64 and sparc64 where all supported hugepage sizes are available.
* only default_hugepagesz= is specified and set not to HPAGE_SIZE
In spite of the fact that default_hugepagesz= is set to a valid
hugepage size, it's treated as unsupported and reverted to
HPAGE_SIZE. Such behaviour is also different from x86_64 and
sparc64.
Acked-by: Steve Capper <[email protected]>
Reviewed-by: Tom Saeger <[email protected]>
Signed-off-by: Dmitry Klochkov <[email protected]>
Signed-off-by: Allen Pais <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions