X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=kernel%2Fsysctl.c;h=74f5b580fe34904fa4d9bcb2790545a323367773;hb=cd5b700f998d9e1d8e6dbc62aeb0351bb2216e22;hp=5c14b547882ef1dabfcd9cd80f5903e173ef4ec4;hpb=e5744abb2fa3629aa5a94e21ca1eae32ff2fe00b;p=android-x86%2Fkernel.git diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 5c14b547882e..74f5b580fe34 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -141,6 +141,11 @@ static int min_percpu_pagelist_fract = 8; static int ngroups_max = NGROUPS_MAX; static const int cap_last_cap = CAP_LAST_CAP; +/*this is needed for proc_doulongvec_minmax of sysctl_hung_task_timeout_secs */ +#ifdef CONFIG_DETECT_HUNG_TASK +static unsigned long hung_task_timeout_max = (LONG_MAX/HZ); +#endif + #ifdef CONFIG_INOTIFY_USER #include #endif @@ -985,6 +990,7 @@ static struct ctl_table kern_table[] = { .maxlen = sizeof(unsigned long), .mode = 0644, .proc_handler = proc_dohung_task_timeout_secs, + .extra2 = &hung_task_timeout_max, }, { .procname = "hung_task_warnings",