|
|
@@ -202,8 +202,9 @@ void calc_load_exit_idle(void)
|
|
|
struct rq *this_rq = this_rq();
|
|
|
|
|
|
/*
|
|
|
- * If we're still before the sample window, we're done.
|
|
|
+ * If we're still before the pending sample window, we're done.
|
|
|
*/
|
|
|
+ this_rq->calc_load_update = calc_load_update;
|
|
|
if (time_before(jiffies, this_rq->calc_load_update))
|
|
|
return;
|
|
|
|
|
|
@@ -212,7 +213,6 @@ void calc_load_exit_idle(void)
|
|
|
* accounted through the nohz accounting, so skip the entire deal and
|
|
|
* sync up for the next window.
|
|
|
*/
|
|
|
- this_rq->calc_load_update = calc_load_update;
|
|
|
if (time_before(jiffies, this_rq->calc_load_update + 10))
|
|
|
this_rq->calc_load_update += LOAD_FREQ;
|
|
|
}
|