IAS: fix the incorrect initial value in ewma which leads to incorrect pairing.
@@ -84,6 +84,9 @@ extern int num_sched_allowed_cores;
*/
static inline void ias_ewma(float *curp, float newv, float factor)
{
+ if ((*curp) < 1E-3)
+ *curp = newv;
+ else
*curp = newv * factor + *curp * (1 - factor);
}
