Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 334486
b: refs/heads/master
c: 344afa6
h: refs/heads/master
v: v3
  • Loading branch information
Ralf Baechle committed Oct 16, 2012
1 parent fc2e247 commit 7ecb01a
Show file tree
Hide file tree
Showing 2 changed files with 15 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: 359187d647a7a7813444ff5932d0b862f970bb0f
refs/heads/master: 344afa6550a66eb4b7103cf1b65fca6f38d380d8
15 changes: 14 additions & 1 deletion trunk/arch/mips/include/asm/pgtable-64.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#ifndef _ASM_PGTABLE_64_H
#define _ASM_PGTABLE_64_H

#include <linux/compiler.h>
#include <linux/linkage.h>

#include <asm/addrspace.h>
Expand Down Expand Up @@ -172,7 +173,19 @@ static inline int pmd_none(pmd_t pmd)
return pmd_val(pmd) == (unsigned long) invalid_pte_table;
}

#define pmd_bad(pmd) (pmd_val(pmd) & ~PAGE_MASK)
static inline int pmd_bad(pmd_t pmd)
{
#ifdef CONFIG_HUGETLB_PAGE
/* pmd_huge(pmd) but inline */
if (unlikely(pmd_val(pmd) & _PAGE_HUGE))
return 0;
#endif

if (unlikely(pmd_val(pmd) & ~PAGE_MASK))
return 1;

return 0;
}

static inline int pmd_present(pmd_t pmd)
{
Expand Down

0 comments on commit 7ecb01a

Please sign in to comment.