aboutsummaryrefslogtreecommitdiffstats
path: root/arch/tile/mm/fault.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/tile/mm/fault.c')
-rw-r--r--arch/tile/mm/fault.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/tile/mm/fault.c b/arch/tile/mm/fault.c
index 51f8663bf074..24ca54a0703b 100644
--- a/arch/tile/mm/fault.c
+++ b/arch/tile/mm/fault.c
@@ -732,6 +732,7 @@ void do_page_fault(struct pt_regs *regs, int fault_num,
732 panic("Bad fault number %d in do_page_fault", fault_num); 732 panic("Bad fault number %d in do_page_fault", fault_num);
733 } 733 }
734 734
735#if CHIP_HAS_TILE_DMA() || CHIP_HAS_SN_PROC()
735 if (EX1_PL(regs->ex1) != USER_PL) { 736 if (EX1_PL(regs->ex1) != USER_PL) {
736 struct async_tlb *async; 737 struct async_tlb *async;
737 switch (fault_num) { 738 switch (fault_num) {
@@ -775,6 +776,7 @@ void do_page_fault(struct pt_regs *regs, int fault_num,
775 return; 776 return;
776 } 777 }
777 } 778 }
779#endif
778 780
779 handle_page_fault(regs, fault_num, is_page_fault, address, write); 781 handle_page_fault(regs, fault_num, is_page_fault, address, write);
780} 782}
@@ -801,8 +803,6 @@ static void handle_async_page_fault(struct pt_regs *regs,
801 async->address, async->is_write); 803 async->address, async->is_write);
802 } 804 }
803} 805}
804#endif /* CHIP_HAS_TILE_DMA() || CHIP_HAS_SN_PROC() */
805
806 806
807/* 807/*
808 * This routine effectively re-issues asynchronous page faults 808 * This routine effectively re-issues asynchronous page faults
@@ -824,6 +824,8 @@ void do_async_page_fault(struct pt_regs *regs)
824 handle_async_page_fault(regs, &current->thread.sn_async_tlb); 824 handle_async_page_fault(regs, &current->thread.sn_async_tlb);
825#endif 825#endif
826} 826}
827#endif /* CHIP_HAS_TILE_DMA() || CHIP_HAS_SN_PROC() */
828
827 829
828void vmalloc_sync_all(void) 830void vmalloc_sync_all(void)
829{ 831{