diff options
author | Nitin Gupta <nitin.m.gupta@oracle.com> | 2017-03-10 01:22:23 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-28 07:20:23 +0300 |
commit | 85b1da7c47052330af9485a5f5c7e54ede882e65 (patch) | |
tree | fb40f96203e4881d07fe8da71a0a723cf6344616 /arch/sparc/mm/init_64.c | |
parent | 59f1183dd368f12c0a80da3c91a4a42afa4e1d38 (diff) | |
download | linux-85b1da7c47052330af9485a5f5c7e54ede882e65.tar.xz |
sparc64: Add support for 2G hugepages
Signed-off-by: Nitin Gupta <nitin.m.gupta@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/mm/init_64.c')
-rw-r--r-- | arch/sparc/mm/init_64.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sparc/mm/init_64.c b/arch/sparc/mm/init_64.c index ccd455328989..3328043e990c 100644 --- a/arch/sparc/mm/init_64.c +++ b/arch/sparc/mm/init_64.c @@ -337,6 +337,10 @@ static int __init setup_hugepagesz(char *string) hugepage_shift = ilog2(hugepage_size); switch (hugepage_shift) { + case HPAGE_2GB_SHIFT: + hv_pgsz_mask = HV_PGSZ_MASK_2GB; + hv_pgsz_idx = HV_PGSZ_IDX_2GB; + break; case HPAGE_256MB_SHIFT: hv_pgsz_mask = HV_PGSZ_MASK_256MB; hv_pgsz_idx = HV_PGSZ_IDX_256MB; |