Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
7eee3e67
Commit
7eee3e67
authored
Feb 22, 2008
by
Ingo Molnar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sched: clean up __pick_last_entity() a bit
Signed-off-by:
Ingo Molnar
<
mingo@elte.hu
>
parent
70eee74b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
kernel/sched_fair.c
kernel/sched_fair.c
+3
-5
No files found.
kernel/sched_fair.c
View file @
7eee3e67
...
@@ -202,14 +202,12 @@ static struct sched_entity *__pick_next_entity(struct cfs_rq *cfs_rq)
...
@@ -202,14 +202,12 @@ static struct sched_entity *__pick_next_entity(struct cfs_rq *cfs_rq)
static
inline
struct
sched_entity
*
__pick_last_entity
(
struct
cfs_rq
*
cfs_rq
)
static
inline
struct
sched_entity
*
__pick_last_entity
(
struct
cfs_rq
*
cfs_rq
)
{
{
struct
rb_node
*
last
;
struct
rb_node
*
last
=
rb_last
(
&
cfs_rq
->
tasks_timeline
);
struct
sched_entity
*
se
;
last
=
rb_last
(
&
cfs_rq
->
tasks_timeline
);
if
(
!
last
)
if
(
!
last
)
return
NULL
;
return
NULL
;
se
=
rb_entry
(
last
,
struct
sched_entity
,
run_node
);
return
se
;
return
rb_entry
(
last
,
struct
sched_entity
,
run_node
)
;
}
}
/**************************************************************
/**************************************************************
...
...
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