Commit a03c9061 authored by Dmitry Adamushko's avatar Dmitry Adamushko Committed by Ingo Molnar

sched: cleanup, remove calc_weighted()

remove obsolete code -- calc_weighted()
Signed-off-by: default avatarDmitry Adamushko <dmitry.adamushko@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent a4ec24b4
...@@ -342,17 +342,6 @@ update_stats_wait_start(struct cfs_rq *cfs_rq, struct sched_entity *se) ...@@ -342,17 +342,6 @@ update_stats_wait_start(struct cfs_rq *cfs_rq, struct sched_entity *se)
schedstat_set(se->wait_start, rq_of(cfs_rq)->clock); schedstat_set(se->wait_start, rq_of(cfs_rq)->clock);
} }
static inline unsigned long
calc_weighted(unsigned long delta, struct sched_entity *se)
{
unsigned long weight = se->load.weight;
if (unlikely(weight != NICE_0_LOAD))
return (u64)delta * se->load.weight >> NICE_0_SHIFT;
else
return delta;
}
/* /*
* Task is being enqueued - update stats: * Task is being enqueued - update stats:
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment