Lines Matching refs:weight
162 pub weight: u64, field
177 self.weight += inc; in update_load_add()
182 self.weight -= dec; in update_load_sub()
186 pub fn update_load_set(&mut self, weight: u64) { in update_load_set()
187 self.weight = weight; in update_load_set()
198 let w = Self::scale_load_down(self.weight); in update_inv_weight()
215 pub fn calculate_delta(&mut self, delta_exec: u64, weight: u64) -> u64 { in calculate_delta()
217 let mut fact = Self::scale_load_down(weight); in calculate_delta()
255 pub const fn scale_load_down(mut weight: u64) -> u64 { in scale_load_down()
256 if weight != 0 { in scale_load_down()
257 weight >>= Self::SCHED_FIXEDPOINT_SHIFT; in scale_load_down()
259 if weight < 2 { in scale_load_down()
260 weight = 2; in scale_load_down()
263 weight in scale_load_down()
267 pub const fn scale_load(weight: u64) -> u64 { in scale_load()
268 weight << Self::SCHED_FIXEDPOINT_SHIFT in scale_load()