summaryrefslogtreecommitdiffstats
path: root/kernel/hung_task.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/hung_task.c')
-rw-r--r--kernel/hung_task.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/hung_task.c b/kernel/hung_task.c
index 4a9191617076..f108a95882c6 100644
--- a/kernel/hung_task.c
+++ b/kernel/hung_task.c
@@ -19,6 +19,7 @@
19#include <linux/utsname.h> 19#include <linux/utsname.h>
20#include <linux/sched/signal.h> 20#include <linux/sched/signal.h>
21#include <linux/sched/debug.h> 21#include <linux/sched/debug.h>
22#include <linux/sched/sysctl.h>
22 23
23#include <trace/events/sched.h> 24#include <trace/events/sched.h>
24 25
@@ -126,7 +127,7 @@ static void check_hung_task(struct task_struct *t, unsigned long timeout)
126 if (sysctl_hung_task_warnings > 0) 127 if (sysctl_hung_task_warnings > 0)
127 sysctl_hung_task_warnings--; 128 sysctl_hung_task_warnings--;
128 pr_err("INFO: task %s:%d blocked for more than %ld seconds.\n", 129 pr_err("INFO: task %s:%d blocked for more than %ld seconds.\n",
129 t->comm, t->pid, timeout); 130 t->comm, t->pid, (jiffies - t->last_switch_time) / HZ);
130 pr_err(" %s %s %.*s\n", 131 pr_err(" %s %s %.*s\n",
131 print_tainted(), init_utsname()->release, 132 print_tainted(), init_utsname()->release,
132 (int)strcspn(init_utsname()->version, " "), 133 (int)strcspn(init_utsname()->version, " "),