aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-04-18 04:55:34 -0400
committerIngo Molnar <mingo@elte.hu>2008-04-19 13:45:00 -0400
commitc24b7c524421f9ea9d9ebab55f80cfb1f3fb77a3 (patch)
tree52a61a1091c8d119b5a2ae97661651d17c2e9d5e /kernel
parentf00b45c145981b43c7e7f66315ac77534c938cbf (diff)
sched: features fix
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index b59a44e1ea44..57ba7ea9b744 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -792,7 +792,7 @@ sched_feat_read(struct file *filp, char __user *ubuf,
792 if (sysctl_sched_features & (1UL << i)) 792 if (sysctl_sched_features & (1UL << i))
793 r += sprintf(buf + r, "%s ", sched_feat_names[i]); 793 r += sprintf(buf + r, "%s ", sched_feat_names[i]);
794 else 794 else
795 r += sprintf(buf + r, "no_%s ", sched_feat_names[i]); 795 r += sprintf(buf + r, "NO_%s ", sched_feat_names[i]);
796 } 796 }
797 797
798 r += sprintf(buf + r, "\n"); 798 r += sprintf(buf + r, "\n");
@@ -822,7 +822,7 @@ sched_feat_write(struct file *filp, const char __user *ubuf,
822 822
823 buf[cnt] = 0; 823 buf[cnt] = 0;
824 824
825 if (strncmp(buf, "no_", 3) == 0) { 825 if (strncmp(buf, "NO_", 3) == 0) {
826 neg = 1; 826 neg = 1;
827 cmp += 3; 827 cmp += 3;
828 } 828 }
@@ -855,17 +855,6 @@ static struct file_operations sched_feat_fops = {
855 855
856static __init int sched_init_debug(void) 856static __init int sched_init_debug(void)
857{ 857{
858 int i, j, len;
859
860 for (i = 0; sched_feat_names[i]; i++) {
861 len = strlen(sched_feat_names[i]);
862
863 for (j = 0; j < len; j++) {
864 sched_feat_names[i][j] =
865 tolower(sched_feat_names[i][j]);
866 }
867 }
868
869 debugfs_create_file("sched_features", 0644, NULL, NULL, 858 debugfs_create_file("sched_features", 0644, NULL, NULL,
870 &sched_feat_fops); 859 &sched_feat_fops);
871 860