Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 129857
b: refs/heads/master
c: 9ba0fdb
h: refs/heads/master
i:
  129855: 97612db
v: v3
  • Loading branch information
Dave Kleikamp authored and Benjamin Herrenschmidt committed Jan 16, 2009
1 parent f678d90 commit 8b526dd
Show file tree
Hide file tree
Showing 2 changed files with 11 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: 5d9ee3ff3dbf815cd9ee18c166bb9b538e8057d2
refs/heads/master: 9ba0fdbfaed2e74005d87fab948c5522b86ff733
11 changes: 10 additions & 1 deletion trunk/arch/powerpc/mm/slice.c
Original file line number Diff line number Diff line change
Expand Up @@ -710,9 +710,18 @@ int is_hugepage_only_range(struct mm_struct *mm, unsigned long addr,
unsigned long len)
{
struct slice_mask mask, available;
unsigned int psize = mm->context.user_psize;

mask = slice_range_to_mask(addr, len);
available = slice_mask_for_size(mm, mm->context.user_psize);
available = slice_mask_for_size(mm, psize);
#ifdef CONFIG_PPC_64K_PAGES
/* We need to account for 4k slices too */
if (psize == MMU_PAGE_64K) {
struct slice_mask compat_mask;
compat_mask = slice_mask_for_size(mm, MMU_PAGE_4K);
or_mask(available, compat_mask);
}
#endif

#if 0 /* too verbose */
slice_dbg("is_hugepage_only_range(mm=%p, addr=%lx, len=%lx)\n",
Expand Down

0 comments on commit 8b526dd

Please sign in to comment.