mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 00:21:17 +00:00
sched: clean up __pick_last_entity() a bit
Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
70eee74b70
commit
7eee3e677d
1 changed files with 3 additions and 5 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**************************************************************
|
/**************************************************************
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue