Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 107479
b: refs/heads/master
c: 0ef89d2
h: refs/heads/master
i:
  107477: 7256f03
  107475: 512fb4a
  107471: a8d4c05
v: v3
  • Loading branch information
Benjamin Herrenschmidt authored and Linus Torvalds committed Aug 1, 2008
1 parent 51dd0cf commit d053e8b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c6de002617c199f80f9a2a713dffc263bdc69b81
refs/heads/master: 0ef89d25d3e390dfa7c46772907951744a4067dc
7 changes: 6 additions & 1 deletion trunk/mm/hugetlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1283,7 +1283,12 @@ module_exit(hugetlb_exit);

static int __init hugetlb_init(void)
{
BUILD_BUG_ON(HPAGE_SHIFT == 0);
/* Some platform decide whether they support huge pages at boot
* time. On these, such as powerpc, HPAGE_SHIFT is set to 0 when
* there is no such support
*/
if (HPAGE_SHIFT == 0)
return 0;

if (!size_to_hstate(default_hstate_size)) {
default_hstate_size = HPAGE_SIZE;
Expand Down

0 comments on commit d053e8b

Please sign in to comment.