On Tue, Aug 27, 2019 at 08:24:53PM +0200, David Sterba wrote: > The div_factor* helpers calculate fraction or percentual fraction. > There's a nice helper mult_frac that's for general fractions, we'll add > a local wrapper suited for our purposes and replace all instances of > div_factor and update naming in fuctions that pass the fractions. > > * div_factor calculates tenths and the numbers need to be adjusted > * div_factor_fine is direct replacement > > Signed-off-by: David Sterba <dste...@suse.com>
Dropped for now. Does not compile on 32bit and due to 64bit division and adding 64bit version of mult_frac does not make things significantly easier. I'll probably do a reduced version that only renames div_factor.