diff options
author | Dmitry Adamushko <dmitry.adamushko@gmail.com> | 2007-10-15 11:00:13 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2007-10-15 11:00:13 -0400 |
commit | a03c9061d93822f66eb6287f8e9cf5833a12b49c (patch) | |
tree | 6f9114291361f90788e95cbeca77e22f73989e74 | |
parent | a4ec24b48ddef1e93f7578be53270f0b95ad666c (diff) |
sched: cleanup, remove calc_weighted()
remove obsolete code -- calc_weighted()
Signed-off-by: Dmitry Adamushko <dmitry.adamushko@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | kernel/sched_fair.c | 11 |
1 files changed, 0 insertions, 11 deletions
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) | |||
342 | schedstat_set(se->wait_start, rq_of(cfs_rq)->clock); | 342 | schedstat_set(se->wait_start, rq_of(cfs_rq)->clock); |
343 | } | 343 | } |
344 | 344 | ||
345 | static inline unsigned long | ||
346 | calc_weighted(unsigned long delta, struct sched_entity *se) | ||
347 | { | ||
348 | unsigned long weight = se->load.weight; | ||
349 | |||
350 | if (unlikely(weight != NICE_0_LOAD)) | ||
351 | return (u64)delta * se->load.weight >> NICE_0_SHIFT; | ||
352 | else | ||
353 | return delta; | ||
354 | } | ||
355 | |||
356 | /* | 345 | /* |
357 | * Task is being enqueued - update stats: | 346 | * Task is being enqueued - update stats: |
358 | */ | 347 | */ |