• Rafael J. Wysocki's avatar
    cpufreq: intel_pstate: Fix up iowait_boost computation · 8e3b4039
    Rafael J. Wysocki authored
    After commit b8bd1581 ("cpufreq: intel_pstate: Rework iowait
    boosting to be less aggressive") the handling of the case when
    the SCHED_CPUFREQ_IOWAIT flag is set again after a few iterations of
    intel_pstate_update_util() is a bit inconsistent, because the
    new value of cpu->iowait_boost may be lower than ONE_EIGHTH_FP
    if it was set before, but has not dropped down to zero just yet.
    
    Fix that up by ensuring that the new value of cpu->iowait_boost
    will always be at least ONE_EIGHTH_FP then.
    
    Fixes: b8bd1581 ("cpufreq: intel_pstate: Rework iowait boosting to be less aggressive")
    Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
    8e3b4039
intel_pstate.c 66.5 KB