]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Use the new proc_do_intvec_bool() handler for various boolean inputs.
authorDave Young <hidave.darkstar@gmail.com>
Wed, 3 Aug 2011 00:53:03 +0000 (10:53 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 22 Aug 2011 03:27:17 +0000 (13:27 +1000)
Signed-off-by: Dave Young <hidave.darkstar@gmail.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/sysctl.c

index 6c9414640f7cbb9cc9577d852e4704850913599f..b09b6be2ab1908d13a4dd30f60d95c8ffbdbb75d 100644 (file)
@@ -349,9 +349,7 @@ static struct ctl_table kern_table[] = {
                .data           = &sysctl_timer_migration,
                .maxlen         = sizeof(unsigned int),
                .mode           = 0644,
-               .proc_handler   = proc_dointvec_minmax,
-               .extra1         = &zero,
-               .extra2         = &one,
+               .proc_handler   = proc_dointvec_bool,
        },
 #endif
        {
@@ -709,9 +707,7 @@ static struct ctl_table kern_table[] = {
                .data           = &dmesg_restrict,
                .maxlen         = sizeof(int),
                .mode           = 0644,
-               .proc_handler   = proc_dointvec_minmax,
-               .extra1         = &zero,
-               .extra2         = &one,
+               .proc_handler   = proc_dointvec_bool,
        },
        {
                .procname       = "kptr_restrict",
@@ -754,9 +750,7 @@ static struct ctl_table kern_table[] = {
                .data           = &softlockup_panic,
                .maxlen         = sizeof(int),
                .mode           = 0644,
-               .proc_handler   = proc_dointvec_minmax,
-               .extra1         = &zero,
-               .extra2         = &one,
+               .proc_handler   = proc_dointvec_bool,
        },
        {
                .procname       = "nmi_watchdog",
@@ -870,9 +864,7 @@ static struct ctl_table kern_table[] = {
                .data           = &sysctl_hung_task_panic,
                .maxlen         = sizeof(int),
                .mode           = 0644,
-               .proc_handler   = proc_dointvec_minmax,
-               .extra1         = &zero,
-               .extra2         = &one,
+               .proc_handler   = proc_dointvec_bool,
        },
        {
                .procname       = "hung_task_check_count",
@@ -1320,9 +1312,7 @@ static struct ctl_table vm_table[] = {
                .data           = &vm_highmem_is_dirtyable,
                .maxlen         = sizeof(vm_highmem_is_dirtyable),
                .mode           = 0644,
-               .proc_handler   = proc_dointvec_minmax,
-               .extra1         = &zero,
-               .extra2         = &one,
+               .proc_handler   = proc_dointvec_bool,
        },
 #endif
        {
@@ -1338,18 +1328,14 @@ static struct ctl_table vm_table[] = {
                .data           = &sysctl_memory_failure_early_kill,
                .maxlen         = sizeof(sysctl_memory_failure_early_kill),
                .mode           = 0644,
-               .proc_handler   = proc_dointvec_minmax,
-               .extra1         = &zero,
-               .extra2         = &one,
+               .proc_handler   = proc_dointvec_bool,
        },
        {
                .procname       = "memory_failure_recovery",
                .data           = &sysctl_memory_failure_recovery,
                .maxlen         = sizeof(sysctl_memory_failure_recovery),
                .mode           = 0644,
-               .proc_handler   = proc_dointvec_minmax,
-               .extra1         = &zero,
-               .extra2         = &one,
+               .proc_handler   = proc_dointvec_bool,
        },
 #endif
        { }