Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b51dbec6 authored by Fabian Frederick's avatar Fabian Frederick Committed by Linus Torvalds
Browse files

kernel/hung_task.c: convert simple_strtoul to kstrtouint



sysctl_hung_task_panic has been changed to unsigned int.  use kstrtouint
instead of obsolete simple_strtoul

Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Cc: Ingo Molnar <mingo@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 95583e4a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -52,8 +52,10 @@ unsigned int __read_mostly sysctl_hung_task_panic =

static int __init hung_task_panic_setup(char *str)
{
	sysctl_hung_task_panic = simple_strtoul(str, NULL, 0);
	int rc = kstrtouint(str, 0, &sysctl_hung_task_panic);

	if (rc)
		return rc;
	return 1;
}
__setup("hung_task_panic=", hung_task_panic_setup);