Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
c24b7c52
Commit
c24b7c52
authored
Apr 18, 2008
by
Ingo Molnar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sched: features fix
Signed-off-by:
Ingo Molnar
<
mingo@elte.hu
>
parent
f00b45c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
13 deletions
+2
-13
kernel/sched.c
kernel/sched.c
+2
-13
No files found.
kernel/sched.c
View file @
c24b7c52
...
...
@@ -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
"
);
...
...
@@ -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
;
}
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment