]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
sched: cleanup, remove calc_weighted()
authorDmitry Adamushko <dmitry.adamushko@gmail.com>
Mon, 15 Oct 2007 15:00:13 +0000 (17:00 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 15 Oct 2007 15:00:13 +0000 (17:00 +0200)
remove obsolete code -- calc_weighted()

Signed-off-by: Dmitry Adamushko <dmitry.adamushko@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched_fair.c

index 48604eab7dad0423d92fd82acfabb3d2d4982cfa..d8502ec569e4bc595c3f5d99ebb70cc0aa87155c 100644 (file)
@@ -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:
  */