arm64: use private ratelimit state along with show_unhandled_signals
[sfrench/cifs-2.6.git] / arch / arm64 / mm / fault.c
index e8c608c893cfb08a3aea776210e5b0c58f2d5d95..66bd92ab6f7be33616ab05fbf5c32c0a6106ef25 100644 (file)
@@ -115,8 +115,7 @@ static void __do_user_fault(struct task_struct *tsk, unsigned long addr,
 {
        struct siginfo si;
 
-       if (show_unhandled_signals && unhandled_signal(tsk, sig) &&
-           printk_ratelimit()) {
+       if (show_unhandled_signals_ratelimited() && unhandled_signal(tsk, sig)) {
                pr_info("%s[%d]: unhandled %s (%d) at 0x%08lx, esr 0x%03x\n",
                        tsk->comm, task_pid_nr(tsk), fault_name(esr), sig,
                        addr, esr);