Lines Matching refs:old_duty_cycle
457 // Return a duty cycle based on old_duty_cycle and new_duty_cycle, limiting the
459 unsigned int CMSStats::icms_damped_duty_cycle(unsigned int old_duty_cycle,
461 assert(old_duty_cycle <= 100, "bad input value");
467 if (new_duty_cycle < old_duty_cycle) {
468 const unsigned int largest_delta = MAX2(old_duty_cycle / 4, 5U);
469 if (new_duty_cycle + largest_delta < old_duty_cycle) {
470 damped_duty_cycle = old_duty_cycle - largest_delta;
472 } else if (new_duty_cycle > old_duty_cycle) {
473 const unsigned int largest_delta = MAX2(old_duty_cycle / 4, 15U);
474 if (new_duty_cycle > old_duty_cycle + largest_delta) {
475 damped_duty_cycle = MIN2(old_duty_cycle + largest_delta, 100U);
482 old_duty_cycle, new_duty_cycle, damped_duty_cycle);