Lines Matching defs:delta
40 * Furthermore, in order to avoid synchronizing all per-CPU delta folding
45 * again, being late doesn't loose the delta, just wrecks the sample.
80 long nr_active, delta = 0;
86 delta = nr_active - this_rq->calc_load_active;
90 return delta;
170 * The basic idea is to fold the nr_active delta into a global NO_HZ-delta upon
171 * entering NO_HZ state such that we can include this as an 'extra' CPU delta
179 * We avoid this by keeping two NO_HZ-delta counters and flipping them
198 * sample, for this CPU (effectively using the NO_HZ-delta for this CPU which
220 * next NO_HZ-delta.
235 long delta;
237 delta = calc_load_fold_active(rq, 0);
238 if (delta) {
241 atomic_long_add(delta, &calc_load_nohz[idx]);
248 * We're going into NO_HZ mode, if there's any pending delta, fold it
249 * into the pending NO_HZ delta.
286 long delta = 0;
289 delta = atomic_long_xchg(&calc_load_nohz[idx], 0);
291 return delta;
296 * calc_load_fold_active(), but since a NO_HZ CPU folds its delta into
298 * in the pending NO_HZ delta if our NO_HZ period crossed a load cycle boundary.
306 long delta, active, n;
313 delta = jiffies - sample_window - 10;
314 n = 1 + (delta / LOAD_FREQ);
352 long active, delta;
359 * Fold the 'old' NO_HZ-delta to include all NO_HZ CPUs.
361 delta = calc_load_nohz_read();
362 if (delta)
363 atomic_long_add(delta, &calc_load_tasks);
387 long delta;
392 delta = calc_load_fold_active(this_rq, 0);
393 if (delta)
394 atomic_long_add(delta, &calc_load_tasks);