From: Dmitry Adamushko Date: Mon, 15 Oct 2007 15:00:13 +0000 (+0200) Subject: sched: cleanup, remove calc_weighted() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a03c9061d93822f66eb6287f8e9cf5833a12b49c;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git sched: cleanup, remove calc_weighted() remove obsolete code -- calc_weighted() Signed-off-by: Dmitry Adamushko Signed-off-by: Ingo Molnar --- diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index 48604eab7dad..d8502ec569e4 100644 --- a/kernel/sched_fair.c +++ b/kernel/sched_fair.c @@ -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); } -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: */