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.
2005 unsigned int ewma; in blk_mq_update_dispatch_busy() local 2007 ewma = hctx->dispatch_busy; in blk_mq_update_dispatch_busy() 2009 if (!ewma && !busy) in blk_mq_update_dispatch_busy() 2012 ewma *= BLK_MQ_DISPATCH_BUSY_EWMA_WEIGHT - 1; in blk_mq_update_dispatch_busy() 2014 ewma += 1 << BLK_MQ_DISPATCH_BUSY_EWMA_FACTOR; in blk_mq_update_dispatch_busy() 2015 ewma /= BLK_MQ_DISPATCH_BUSY_EWMA_WEIGHT; in blk_mq_update_dispatch_busy() 2017 hctx->dispatch_busy = ewma; in blk_mq_update_dispatch_busy()
4844 unsigned int ewma, dequeued, last_ewma_diff; in util_est_update() local4857 ewma = READ_ONCE(p->se.avg.util_est); in util_est_update()4863 if (ewma & UTIL_AVG_UNCHANGED) in util_est_update()4873 if (ewma <= dequeued) { in util_est_update()4874 ewma = dequeued; in util_est_update()4882 last_ewma_diff = ewma - dequeued; in util_est_update()4910 ewma <<= UTIL_EST_WEIGHT_SHIFT; in util_est_update()4911 ewma -= last_ewma_diff; in util_est_update()4912 ewma >>= UTIL_EST_WEIGHT_SHIFT; in util_est_update()4914 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()