Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 91104
b: refs/heads/master
c: c24b7c5
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed Apr 19, 2008
1 parent 14af99b commit 326ab4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f00b45c145981b43c7e7f66315ac77534c938cbf
refs/heads/master: c24b7c524421f9ea9d9ebab55f80cfb1f3fb77a3
15 changes: 2 additions & 13 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ sched_feat_read(struct file *filp, char __user *ubuf,
if (sysctl_sched_features & (1UL << i))
r += sprintf(buf + r, "%s ", sched_feat_names[i]);
else
r += sprintf(buf + r, "no_%s ", sched_feat_names[i]);
r += sprintf(buf + r, "NO_%s ", sched_feat_names[i]);
}

r += sprintf(buf + r, "\n");
Expand Down Expand Up @@ -822,7 +822,7 @@ sched_feat_write(struct file *filp, const char __user *ubuf,

buf[cnt] = 0;

if (strncmp(buf, "no_", 3) == 0) {
if (strncmp(buf, "NO_", 3) == 0) {
neg = 1;
cmp += 3;
}
Expand Down Expand Up @@ -855,17 +855,6 @@ static struct file_operations sched_feat_fops = {

static __init int sched_init_debug(void)
{
int i, j, len;

for (i = 0; sched_feat_names[i]; i++) {
len = strlen(sched_feat_names[i]);

for (j = 0; j < len; j++) {
sched_feat_names[i][j] =
tolower(sched_feat_names[i][j]);
}
}

debugfs_create_file("sched_features", 0644, NULL, NULL,
&sched_feat_fops);

Expand Down

0 comments on commit 326ab4f

Please sign in to comment.