diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-01-25 15:08:34 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-25 15:08:34 -0500 |
commit | 90739081ef8d5495d50abba9c5d333be9acd872a (patch) | |
tree | 37dc5c626940a4bad6d9ffad81b7be12dc44f054 /kernel/sysctl.c | |
parent | 9745512ce79de686df354dc70a8d1a74d801892d (diff) |
softlockup: fix signedness
fix softlockup tunables signedness.
mark tunables read-mostly.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r-- | kernel/sysctl.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 5418ef61e16e..8e96558cb8f3 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -772,9 +772,9 @@ static struct ctl_table kern_table[] = { | |||
772 | .ctl_name = CTL_UNNUMBERED, | 772 | .ctl_name = CTL_UNNUMBERED, |
773 | .procname = "softlockup_thresh", | 773 | .procname = "softlockup_thresh", |
774 | .data = &softlockup_thresh, | 774 | .data = &softlockup_thresh, |
775 | .maxlen = sizeof(int), | 775 | .maxlen = sizeof(unsigned long), |
776 | .mode = 0644, | 776 | .mode = 0644, |
777 | .proc_handler = &proc_dointvec_minmax, | 777 | .proc_handler = &proc_doulongvec_minmax, |
778 | .strategy = &sysctl_intvec, | 778 | .strategy = &sysctl_intvec, |
779 | .extra1 = &one, | 779 | .extra1 = &one, |
780 | .extra2 = &sixty, | 780 | .extra2 = &sixty, |
@@ -783,27 +783,27 @@ static struct ctl_table kern_table[] = { | |||
783 | .ctl_name = CTL_UNNUMBERED, | 783 | .ctl_name = CTL_UNNUMBERED, |
784 | .procname = "hung_task_check_count", | 784 | .procname = "hung_task_check_count", |
785 | .data = &sysctl_hung_task_check_count, | 785 | .data = &sysctl_hung_task_check_count, |
786 | .maxlen = sizeof(int), | 786 | .maxlen = sizeof(unsigned long), |
787 | .mode = 0644, | 787 | .mode = 0644, |
788 | .proc_handler = &proc_dointvec_minmax, | 788 | .proc_handler = &proc_doulongvec_minmax, |
789 | .strategy = &sysctl_intvec, | 789 | .strategy = &sysctl_intvec, |
790 | }, | 790 | }, |
791 | { | 791 | { |
792 | .ctl_name = CTL_UNNUMBERED, | 792 | .ctl_name = CTL_UNNUMBERED, |
793 | .procname = "hung_task_timeout_secs", | 793 | .procname = "hung_task_timeout_secs", |
794 | .data = &sysctl_hung_task_timeout_secs, | 794 | .data = &sysctl_hung_task_timeout_secs, |
795 | .maxlen = sizeof(int), | 795 | .maxlen = sizeof(unsigned long), |
796 | .mode = 0644, | 796 | .mode = 0644, |
797 | .proc_handler = &proc_dointvec_minmax, | 797 | .proc_handler = &proc_doulongvec_minmax, |
798 | .strategy = &sysctl_intvec, | 798 | .strategy = &sysctl_intvec, |
799 | }, | 799 | }, |
800 | { | 800 | { |
801 | .ctl_name = CTL_UNNUMBERED, | 801 | .ctl_name = CTL_UNNUMBERED, |
802 | .procname = "hung_task_warnings", | 802 | .procname = "hung_task_warnings", |
803 | .data = &sysctl_hung_task_warnings, | 803 | .data = &sysctl_hung_task_warnings, |
804 | .maxlen = sizeof(int), | 804 | .maxlen = sizeof(unsigned long), |
805 | .mode = 0644, | 805 | .mode = 0644, |
806 | .proc_handler = &proc_dointvec_minmax, | 806 | .proc_handler = &proc_doulongvec_minmax, |
807 | .strategy = &sysctl_intvec, | 807 | .strategy = &sysctl_intvec, |
808 | }, | 808 | }, |
809 | #endif | 809 | #endif |