Messages in this thread | | | Date | Wed, 17 Jul 2019 16:03:56 +0530 | From | Viresh Kumar <> | Subject | Re: [PATCH] sched/fair: Introduce fits_capacity() |
| |
On 04-06-19, 12:31, Viresh Kumar wrote: > The same formula to check utilization against capacity (after > considering capacity_margin) is already used at 5 different locations. > > This patch creates a new macro, fits_capacity(), which can be used from > all these locations without exposing the details of it and hence > simplify code. > > All the 5 code locations are updated as well to use it.. > > Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> > --- > kernel/sched/fair.c | 14 +++++++------- > 1 file changed, 7 insertions(+), 7 deletions(-)
@Peter: Do you suggest any modifications to this patch? Do I need to resend it ?
-- viresh
| |