Skip to content

Commit aac3fdf

Browse files
author
Fox Snowpatch
committed
1 parent a85c72f commit aac3fdf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

arch/powerpc/include/asm/hugetlb.h

+9
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@
1515

1616
extern bool hugetlb_disabled;
1717

18+
static inline int hugepages_supported(void)
19+
{
20+
if (hugetlb_disabled)
21+
return 0;
22+
23+
return HPAGE_SHIFT != 0;
24+
}
25+
#define hugepages_supported hugepages_supported
26+
1827
void __init hugetlbpage_init_defaultsize(void);
1928

2029
int slice_is_hugepage_only_range(struct mm_struct *mm, unsigned long addr,

0 commit comments

Comments
 (0)