sched: cleanup: function prototype cleanups
noticed by Thomas Gleixner: cleanup: function prototype cleanups - move into single line wherever possible. Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
@@ -112,8 +112,7 @@ static inline struct task_struct *task_of(struct sched_entity *se)
|
|||||||
* Scheduling class tree data structure manipulation methods:
|
* Scheduling class tree data structure manipulation methods:
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static inline u64
|
static inline u64 max_vruntime(u64 min_vruntime, u64 vruntime)
|
||||||
max_vruntime(u64 min_vruntime, u64 vruntime)
|
|
||||||
{
|
{
|
||||||
s64 delta = (s64)(vruntime - min_vruntime);
|
s64 delta = (s64)(vruntime - min_vruntime);
|
||||||
if (delta > 0)
|
if (delta > 0)
|
||||||
@@ -122,8 +121,7 @@ max_vruntime(u64 min_vruntime, u64 vruntime)
|
|||||||
return min_vruntime;
|
return min_vruntime;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline u64
|
static inline u64 min_vruntime(u64 min_vruntime, u64 vruntime)
|
||||||
min_vruntime(u64 min_vruntime, u64 vruntime)
|
|
||||||
{
|
{
|
||||||
s64 delta = (s64)(vruntime - min_vruntime);
|
s64 delta = (s64)(vruntime - min_vruntime);
|
||||||
if (delta < 0)
|
if (delta < 0)
|
||||||
@@ -132,8 +130,7 @@ min_vruntime(u64 min_vruntime, u64 vruntime)
|
|||||||
return min_vruntime;
|
return min_vruntime;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline s64
|
static inline s64 entity_key(struct cfs_rq *cfs_rq, struct sched_entity *se)
|
||||||
entity_key(struct cfs_rq *cfs_rq, struct sched_entity *se)
|
|
||||||
{
|
{
|
||||||
return se->vruntime - cfs_rq->min_vruntime;
|
return se->vruntime - cfs_rq->min_vruntime;
|
||||||
}
|
}
|
||||||
@@ -141,8 +138,7 @@ entity_key(struct cfs_rq *cfs_rq, struct sched_entity *se)
|
|||||||
/*
|
/*
|
||||||
* Enqueue an entity into the rb-tree:
|
* Enqueue an entity into the rb-tree:
|
||||||
*/
|
*/
|
||||||
static void
|
static void __enqueue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se)
|
||||||
__enqueue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se)
|
|
||||||
{
|
{
|
||||||
struct rb_node **link = &cfs_rq->tasks_timeline.rb_node;
|
struct rb_node **link = &cfs_rq->tasks_timeline.rb_node;
|
||||||
struct rb_node *parent = NULL;
|
struct rb_node *parent = NULL;
|
||||||
@@ -179,8 +175,7 @@ __enqueue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se)
|
|||||||
rb_insert_color(&se->run_node, &cfs_rq->tasks_timeline);
|
rb_insert_color(&se->run_node, &cfs_rq->tasks_timeline);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void __dequeue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se)
|
||||||
__dequeue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se)
|
|
||||||
{
|
{
|
||||||
if (cfs_rq->rb_leftmost == &se->run_node)
|
if (cfs_rq->rb_leftmost == &se->run_node)
|
||||||
cfs_rq->rb_leftmost = rb_next(&se->run_node);
|
cfs_rq->rb_leftmost = rb_next(&se->run_node);
|
||||||
|
Reference in New Issue
Block a user