Home
last modified time | relevance | path

Searched refs:sum (Results 1 – 8 of 8) sorted by relevance

/kernel/rcu/
Dsrcu.c150 unsigned long sum = 0; in srcu_readers_seq_idx() local
155 sum += t; in srcu_readers_seq_idx()
157 return sum; in srcu_readers_seq_idx()
167 unsigned long sum = 0; in srcu_readers_active_idx() local
172 sum += t; in srcu_readers_active_idx()
174 return sum; in srcu_readers_active_idx()
265 unsigned long sum = 0; in srcu_readers_active() local
268 sum += ACCESS_ONCE(per_cpu_ptr(sp->per_cpu_ref, cpu)->c[0]); in srcu_readers_active()
269 sum += ACCESS_ONCE(per_cpu_ptr(sp->per_cpu_ref, cpu)->c[1]); in srcu_readers_active()
271 return sum; in srcu_readers_active()
/kernel/sched/
Dwalt.c565 u64 sum = 0; in update_history() local
576 sum += hist[widx]; in update_history()
583 sum += hist[widx]; in update_history()
588 p->ravg.sum = 0; in update_history()
595 avg = div64_u64(sum, walt_ravg_hist_size); in update_history()
622 p->ravg.sum += delta; in add_to_task_demand()
623 if (unlikely(p->ravg.sum > walt_ravg_window)) in add_to_task_demand()
624 p->ravg.sum = walt_ravg_window; in add_to_task_demand()
694 update_history(rq, p, p->ravg.sum, 1, event); in update_task_demand()
715 update_history(rq, p, p->ravg.sum, 1, event); in update_task_demand()
[all …]
Dcore.c2665 unsigned long i, sum = 0; in nr_running() local
2668 sum += cpu_rq(i)->nr_running; in nr_running()
2670 return sum; in nr_running()
2695 unsigned long long sum = 0; in nr_context_switches() local
2698 sum += cpu_rq(i)->nr_switches; in nr_context_switches()
2700 return sum; in nr_context_switches()
2705 unsigned long i, sum = 0; in nr_iowait() local
2708 sum += atomic_read(&cpu_rq(i)->nr_iowait); in nr_iowait()
2710 return sum; in nr_iowait()
7927 unsigned long total, sum = 0; in tg_rt_schedulable() local
[all …]
/kernel/locking/
Dpercpu-rwsem.c105 unsigned int sum = 0; in clear_fast_ctr() local
109 sum += per_cpu(*brw->fast_read_ctr, cpu); in clear_fast_ctr()
113 return sum; in clear_fast_ctr()
Dlocktorture.c505 long long sum = 0; in __torture_print_stats() local
511 sum += statp[i].n_lock_acquired; in __torture_print_stats()
520 sum, max, min, max / 2 > min ? "???" : "", in __torture_print_stats()
/kernel/time/
Dudelay_test.c39 uint64_t sum = 0; in udelay_test_single() local
61 sum += time_passed; in udelay_test_single()
64 avg = sum; in udelay_test_single()
Dposix-cpu-timers.c214 struct task_cputime sum; in thread_group_cputimer() local
224 thread_group_cputime(tsk, &sum); in thread_group_cputimer()
227 update_gt_cputime(&cputimer->cputime, &sum); in thread_group_cputimer()
/kernel/irq/
Dirqdesc.c622 int sum = 0; in kstat_irqs() local
627 sum += *per_cpu_ptr(desc->kstat_irqs, cpu); in kstat_irqs()
628 return sum; in kstat_irqs()
642 int sum; in kstat_irqs_usr() local
645 sum = kstat_irqs(irq); in kstat_irqs_usr()
647 return sum; in kstat_irqs_usr()