提交 c63c3105 编写于 作者: P Paul Mundt

sh: use kprobes_built_in() for notify_page_fault().

Kill off the KPROBES ifdef, as per x86.
Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 1ecc6ab6
......@@ -25,14 +25,12 @@ static inline int notify_page_fault(struct pt_regs *regs, int trap)
{
int ret = 0;
#ifdef CONFIG_KPROBES
if (!user_mode(regs)) {
if (kprobes_built_in() && !user_mode(regs)) {
preempt_disable();
if (kprobe_running() && kprobe_fault_handler(regs, trap))
ret = 1;
preempt_enable();
}
#endif
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册