Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 14651
b: refs/heads/master
c: 5e391dc
h: refs/heads/master
i:
  14649: 84a1e45
  14647: feb7d2e
v: v3
  • Loading branch information
David Gibson authored and Linus Torvalds committed Nov 24, 2005
1 parent d66c988 commit 3e94416
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 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: e9b15b54d3646108bbd3e054158b402025d3e704
refs/heads/master: 5e391dc9e3fec68922137ae317bf680a74656c1b
6 changes: 3 additions & 3 deletions trunk/arch/powerpc/mm/hugetlbpage.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,15 +287,15 @@ static int open_high_hpage_areas(struct mm_struct *mm, u16 newareas)

int prepare_hugepage_range(unsigned long addr, unsigned long len)
{
int err;
int err = 0;

if ( (addr+len) < addr )
return -EINVAL;

if ((addr + len) < 0x100000000UL)
if (addr < 0x100000000UL)
err = open_low_hpage_areas(current->mm,
LOW_ESID_MASK(addr, len));
else
if ((addr + len) >= 0x100000000UL)
err = open_high_hpage_areas(current->mm,
HTLB_AREA_MASK(addr, len));
if (err) {
Expand Down
6 changes: 3 additions & 3 deletions trunk/include/asm-powerpc/page_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ extern unsigned int HPAGE_SHIFT;

#define in_hugepage_area(context, addr) \
(cpu_has_feature(CPU_FTR_16M_PAGE) && \
( ((1 << GET_HTLB_AREA(addr)) & (context).high_htlb_areas) || \
( ((addr) < 0x100000000L) && \
((1 << GET_ESID(addr)) & (context).low_htlb_areas) ) ) )
( ( (addr) >= 0x100000000UL) \
? ((1 << GET_HTLB_AREA(addr)) & (context).high_htlb_areas) \
: ((1 << GET_ESID(addr)) & (context).low_htlb_areas) ) )

#else /* !CONFIG_HUGETLB_PAGE */

Expand Down

0 comments on commit 3e94416

Please sign in to comment.