Lines Matching full: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; in calc_load_fold_active() local
86 delta = nr_active - this_rq->calc_load_active; in calc_load_fold_active()
90 return delta; in calc_load_fold_active()
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. in calc_load_write_idx()
235 long delta; in calc_load_nohz_fold() local
237 delta = calc_load_fold_active(rq, 0); in calc_load_nohz_fold()
238 if (delta) { in calc_load_nohz_fold()
241 atomic_long_add(delta, &calc_load_nohz[idx]); in calc_load_nohz_fold()
248 * We're going into NO_HZ mode, if there's any pending delta, fold it in calc_load_nohz_start()
249 * into the pending NO_HZ delta. in calc_load_nohz_start()
286 long delta = 0; in calc_load_nohz_read() local
289 delta = atomic_long_xchg(&calc_load_nohz[idx], 0); in calc_load_nohz_read()
291 return delta; in calc_load_nohz_read()
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; in calc_global_nohz() local
313 delta = jiffies - sample_window - 10; in calc_global_nohz()
314 n = 1 + (delta / LOAD_FREQ); in calc_global_nohz()
352 long active, delta; in calc_global_load() local
359 * Fold the 'old' NO_HZ-delta to include all NO_HZ CPUs. in calc_global_load()
361 delta = calc_load_nohz_read(); in calc_global_load()
362 if (delta) in calc_global_load()
363 atomic_long_add(delta, &calc_load_tasks); in calc_global_load()
387 long delta; in calc_global_load_tick() local
392 delta = calc_load_fold_active(this_rq, 0); in calc_global_load_tick()
393 if (delta) in calc_global_load_tick()
394 atomic_long_add(delta, &calc_load_tasks); in calc_global_load_tick()