X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=kernel%2Fsysctl.c;h=c1b26e176aa6f690773d7857b69163f09a4f0248;hb=42d49f4525661181162386eea643275a5de10b59;hp=49e13e1f8fe6a5e481edb3026ae20360918986c3;hpb=ff95fe382c658d81ebe01ba68dca2e00ca814ff0;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 49e13e1..c1b26e1 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -139,11 +139,15 @@ static unsigned long dirty_bytes_min = 2 * PAGE_SIZE; /* this is needed for the proc_dointvec_minmax for [fs_]overflow UID and GID */ static int maxolduid = 65535; static int minolduid; -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 @@ -995,6 +999,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", @@ -1318,7 +1323,7 @@ static struct ctl_table vm_table[] = { .maxlen = sizeof(percpu_pagelist_fraction), .mode = 0644, .proc_handler = percpu_pagelist_fraction_sysctl_handler, - .extra1 = &min_percpu_pagelist_fract, + .extra1 = &zero, }, #ifdef CONFIG_MMU {