diff options
Diffstat (limited to 'arch/s390/mm/fault.c')
-rw-r--r-- | arch/s390/mm/fault.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/arch/s390/mm/fault.c b/arch/s390/mm/fault.c index 0ba174f779da..63507662828f 100644 --- a/arch/s390/mm/fault.c +++ b/arch/s390/mm/fault.c | |||
@@ -67,20 +67,6 @@ static int __init fault_init(void) | |||
67 | } | 67 | } |
68 | early_initcall(fault_init); | 68 | early_initcall(fault_init); |
69 | 69 | ||
70 | static inline int notify_page_fault(struct pt_regs *regs) | ||
71 | { | ||
72 | int ret = 0; | ||
73 | |||
74 | /* kprobe_running() needs smp_processor_id() */ | ||
75 | if (kprobes_built_in() && !user_mode(regs)) { | ||
76 | preempt_disable(); | ||
77 | if (kprobe_running() && kprobe_fault_handler(regs, 14)) | ||
78 | ret = 1; | ||
79 | preempt_enable(); | ||
80 | } | ||
81 | return ret; | ||
82 | } | ||
83 | |||
84 | /* | 70 | /* |
85 | * Find out which address space caused the exception. | 71 | * Find out which address space caused the exception. |
86 | */ | 72 | */ |
@@ -412,7 +398,7 @@ static inline vm_fault_t do_exception(struct pt_regs *regs, int access) | |||
412 | */ | 398 | */ |
413 | clear_pt_regs_flag(regs, PIF_PER_TRAP); | 399 | clear_pt_regs_flag(regs, PIF_PER_TRAP); |
414 | 400 | ||
415 | if (notify_page_fault(regs)) | 401 | if (kprobe_page_fault(regs, 14)) |
416 | return 0; | 402 | return 0; |
417 | 403 | ||
418 | mm = tsk->mm; | 404 | mm = tsk->mm; |