Skip to content

Commit 844eb64

Browse files
deggemanPeter Zijlstra
authored andcommitted
sched/pelt: Remove redundant cap_scale() definition
Besides in PELT cap_scale() is used in the Deadline scheduler class for scale-invariant bandwidth enforcement. Remove the cap_scale() definition in kernel/sched/pelt.c and keep the one in kernel/sched/sched.h. Signed-off-by: Dietmar Eggemann <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Vincent Guittot <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 3dc167b commit 844eb64

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

kernel/sched/pelt.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,6 @@ static u32 __accumulate_pelt_segments(u64 periods, u32 d1, u32 d3)
8383
return c1 + c2 + c3;
8484
}
8585

86-
#define cap_scale(v, s) ((v)*(s) >> SCHED_CAPACITY_SHIFT)
87-
8886
/*
8987
* Accumulate the three separate parts of the sum; d1 the remainder
9088
* of the last (incomplete) period, d2 the span of full periods and d3

0 commit comments

Comments
 (0)