Searched refs:ewma (Results 1 – 8 of 8) sorted by relevance
31 ewma(u) = ewma_sum(u) / ewma_sum(1)33 由于这本质上是一个无限几何级数的累加,结果是可组合的,即ewma(A) + ewma(B) = ewma(A+B)。
409 #define ewma_add(ewma, val, weight, factor) \ argument411 (ewma) *= (weight) - 1; \412 (ewma) += (val) << factor; \413 (ewma) /= (weight); \414 (ewma) >> factor; \
24 ewma(u) = ewma_sum(u) / ewma_sum(1)27 results are composable, that is ewma(A) + ewma(B) = ewma(A+B). This property
25 static inline int rt2x00link_get_avg_rssi(struct ewma_rssi *ewma) in rt2x00link_get_avg_rssi() argument29 avg = ewma_rssi_read(ewma); in rt2x00link_get_avg_rssi()
95 and ewma log need to be converted to the appropriate values.
1996 unsigned int ewma; in blk_mq_update_dispatch_busy() local1998 ewma = hctx->dispatch_busy; in blk_mq_update_dispatch_busy()2000 if (!ewma && !busy) in blk_mq_update_dispatch_busy()2003 ewma *= BLK_MQ_DISPATCH_BUSY_EWMA_WEIGHT - 1; in blk_mq_update_dispatch_busy()2005 ewma += 1 << BLK_MQ_DISPATCH_BUSY_EWMA_FACTOR; in blk_mq_update_dispatch_busy()2006 ewma /= BLK_MQ_DISPATCH_BUSY_EWMA_WEIGHT; in blk_mq_update_dispatch_busy()2008 hctx->dispatch_busy = ewma; in blk_mq_update_dispatch_busy()
4866 unsigned int ewma, dequeued, last_ewma_diff; in util_est_update() local4879 ewma = READ_ONCE(p->se.avg.util_est); in util_est_update()4885 if (ewma & UTIL_AVG_UNCHANGED) in util_est_update()4895 if (ewma <= dequeued) { in util_est_update()4896 ewma = dequeued; in util_est_update()4904 last_ewma_diff = ewma - dequeued; in util_est_update()4932 ewma <<= UTIL_EST_WEIGHT_SHIFT; in util_est_update()4933 ewma -= last_ewma_diff; in util_est_update()4934 ewma >>= UTIL_EST_WEIGHT_SHIFT; in util_est_update()4936 ewma |= UTIL_AVG_UNCHANGED; in util_est_update()[all …]
376 static unsigned long ewma(unsigned long prev, unsigned long curr) in ewma() function439 change = ewma(advisor_ctx.change, change); in scan_time_advisor()