Home
last modified time | relevance | path

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

/kernel/
Dsrcu.c61 int sum; in srcu_readers_active_idx() local
63 sum = 0; in srcu_readers_active_idx()
65 sum += per_cpu_ptr(sp->per_cpu_ref, cpu)->c[idx]; in srcu_readers_active_idx()
66 return sum; in srcu_readers_active_idx()
91 int sum; in cleanup_srcu_struct() local
93 sum = srcu_readers_active(sp); in cleanup_srcu_struct()
94 WARN_ON(sum); /* Leakage unless caller handles error. */ in cleanup_srcu_struct()
95 if (sum != 0) in cleanup_srcu_struct()
Drcupreempt.c807 int sum = 0; in rcu_try_flip_waitzero() local
813 sum += RCU_DATA_CPU(cpu)->rcu_flipctr[lastidx]; in rcu_try_flip_waitzero()
814 if (sum != 0) { in rcu_try_flip_waitzero()
Dsched.c2716 unsigned long i, sum = 0; in nr_running() local
2719 sum += cpu_rq(i)->nr_running; in nr_running()
2721 return sum; in nr_running()
2726 unsigned long i, sum = 0; in nr_uninterruptible() local
2729 sum += cpu_rq(i)->nr_uninterruptible; in nr_uninterruptible()
2735 if (unlikely((long)sum < 0)) in nr_uninterruptible()
2736 sum = 0; in nr_uninterruptible()
2738 return sum; in nr_uninterruptible()
2744 unsigned long long sum = 0; in nr_context_switches() local
2747 sum += cpu_rq(i)->nr_switches; in nr_context_switches()
[all …]
Dposix-cpu-timers.c279 struct task_cputime sum; in thread_group_cputimer() local
291 thread_group_cputime(tsk, &sum); in thread_group_cputimer()
292 update_gt_cputime(&cputimer->cputime, &sum); in thread_group_cputimer()