projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rcu: Use rcu_gp_kthread_wake() to wake up grace period kthreads
[platform/adaptation/renesas_rcar/renesas_kernel.git]
/
kernel
/
hung_task.c
diff --git
a/kernel/hung_task.c
b/kernel/hung_task.c
index
9328b80
..
0b9c169
100644
(file)
--- a/
kernel/hung_task.c
+++ b/
kernel/hung_task.c
@@
-37,7
+37,7
@@
int __read_mostly sysctl_hung_task_check_count = PID_MAX_LIMIT;
*/
unsigned long __read_mostly sysctl_hung_task_timeout_secs = CONFIG_DEFAULT_HUNG_TASK_TIMEOUT;
*/
unsigned long __read_mostly sysctl_hung_task_timeout_secs = CONFIG_DEFAULT_HUNG_TASK_TIMEOUT;
-
unsigned long
__read_mostly sysctl_hung_task_warnings = 10;
+
int
__read_mostly sysctl_hung_task_warnings = 10;
static int __read_mostly did_panic;
static int __read_mostly did_panic;
@@
-98,7
+98,9
@@
static void check_hung_task(struct task_struct *t, unsigned long timeout)
if (!sysctl_hung_task_warnings)
return;
if (!sysctl_hung_task_warnings)
return;
- sysctl_hung_task_warnings--;
+
+ if (sysctl_hung_task_warnings > 0)
+ sysctl_hung_task_warnings--;
/*
* Ok, the task did not get scheduled for more than 2 minutes,
/*
* Ok, the task did not get scheduled for more than 2 minutes,