diff options
| -rw-r--r-- | arch/mips/mm/gup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/mm/gup.c b/arch/mips/mm/gup.c index d4ea5c9c4a93..06ce17c2a905 100644 --- a/arch/mips/mm/gup.c +++ b/arch/mips/mm/gup.c | |||
| @@ -12,6 +12,7 @@ | |||
| 12 | #include <linux/swap.h> | 12 | #include <linux/swap.h> |
| 13 | #include <linux/hugetlb.h> | 13 | #include <linux/hugetlb.h> |
| 14 | 14 | ||
| 15 | #include <asm/cpu-features.h> | ||
| 15 | #include <asm/pgtable.h> | 16 | #include <asm/pgtable.h> |
| 16 | 17 | ||
| 17 | static inline pte_t gup_get_pte(pte_t *ptep) | 18 | static inline pte_t gup_get_pte(pte_t *ptep) |
| @@ -273,7 +274,7 @@ int get_user_pages_fast(unsigned long start, int nr_pages, int write, | |||
| 273 | len = (unsigned long) nr_pages << PAGE_SHIFT; | 274 | len = (unsigned long) nr_pages << PAGE_SHIFT; |
| 274 | 275 | ||
| 275 | end = start + len; | 276 | end = start + len; |
| 276 | if (end < start) | 277 | if (end < start || cpu_has_dc_aliases) |
| 277 | goto slow_irqon; | 278 | goto slow_irqon; |
| 278 | 279 | ||
| 279 | /* XXX: batch / limit 'nr' */ | 280 | /* XXX: batch / limit 'nr' */ |
